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

revel test should return a non-zero exit code on test failure #100

Open
jesseroux opened this issue Apr 30, 2019 · 0 comments
Open

revel test should return a non-zero exit code on test failure #100

jesseroux opened this issue Apr 30, 2019 · 0 comments

Comments

@jesseroux
Copy link

I'm trying to use travis to test my project which will run both my Go tests and Revel tests. However revel test will always return exit code 0, even if the tests fail. This makes it difficult to incorporate into automated testing scripts.

My current workaround is to do revel test 2>1 | grep -e "All Tests Passed." which returns 0 if it matches the text, or 1 otherwise. However this means that grep swallows the output and I can't see what actually failed. This turns into a mess of writing the log to a file, checking the file, printing log output if it's not found, etc.

Non-zero exit codes on test failure are typically the norm for automated test runners.

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

No branches or pull requests

1 participant