You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: