-
Notifications
You must be signed in to change notification settings - Fork 330
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
devenv test reporting success even when errors and failures occur #1199
Comments
Could you also attach the python files so I can reproduce the failure? |
Hi, The issue is that The screenshot is from tests run in a private repo, so I can't share those files. But as I indicated in the Gist, https://gist.github.com/kourtni/7ee2749b0bb75253e0d29d2deab1b4fb, this behavior is completely reproducible without actually requiring any python files. In fact the point of that Gist is to show that But if you absolutely want to include a dummy test for some reason, you could create a file with a simple test where you As long as the final command in |
@kourtni, the issue isn't the We set the shell to exit early on errors with Bash is not a great environment for testing because of this. Perhaps there are testing tools out there to fix this. |
OK, thanks for those details @sandydoo! Perhaps it makes sense to add that caveat to the devenv test documentation, so that people aren't scratching their heads like I was. |
I find a similar issue; pre-commit hooks (run with devenv test) exit with code 0 even if the hooks themselves exit with failure. The issue seems related to the one originally reported hence commenting here. Here's a gist to demonstrate, which includes the Is this expected? If yes, perhaps the documentation should be updated?
|
Fixed in #1510 |
Describe the bug
When running
devenv test
, failures and errors can get swallowed resulting indevenv test
reporting that "Tests passed".To reproduce
This gist, https://gist.github.com/kourtni/7ee2749b0bb75253e0d29d2deab1b4fb, is a complete example that reproduces the issue. I expect that running
devenv test
from that environment should fail, however it currently passes.Version
devenv 1.0.5 (x86_64-linux)
The text was updated successfully, but these errors were encountered: