Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash assertions #16

Open
orangemug opened this issue Oct 28, 2016 · 0 comments
Open

Bash assertions #16

orangemug opened this issue Oct 28, 2016 · 0 comments
Labels

Comments

@orangemug
Copy link
Owner

We currently have experimental support for bash (see https://github.com/orangemug/readme-tester/tree/master/test/examples/bash)

We include https://github.com/orangemug/bash-assert which allows for variable testing

out=`some-command`
assert $out == "some output"

Unix exit codes tests

some-command
assert $? == 0

stdout/stderr tests

echo "foo" > /tmp/foo-stdout.txt
## >>/tmp/foo-stdout.txt
## foo
## <<

Are there any opinions of the current API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant