Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivyl/sh.ould
bash testing framewrok
https://github.com/ivyl/sh.ould
Last synced: about 1 month ago
JSON representation
bash testing framewrok
- Host: GitHub
- URL: https://github.com/ivyl/sh.ould
- Owner: ivyl
- Created: 2013-10-13T00:18:26.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-18T23:47:41.000Z (almost 11 years ago)
- Last Synced: 2023-04-11T13:48:05.840Z (over 1 year ago)
- Language: Shell
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sh.ould
## Project
**BASH** Testing Framework
## Features:
* WIP
* Runner
* Nice matchers
* Nice output (colors, backtraces)## Conventions:
* t\_whatever\_you\_like - functions which names begin in t\_ are runned
automatically by runner
* before and after - define those functions, they'll be evaluated every test call (before and after).## Matchers:
### expect:
Expects output, does not check status code.
expect "foo\nbar" from \
ls unf### expect\_code
expect_code $SUCCESS from \
command_under_test### expect\_match
Regexp. Throught grep -E
expect_match "regexp" from \
command_under_test### negating
All matchers can be negated with not just after name, before expectation
expect not "foo" from \
echo bar## Runner:
run_all_tests