-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bad skip condition definition can abort entire test run #205
Comments
I think |
That‘s a surprise to me. Matlab |
Ok, unclear to me, fair to continue under the assumption that |
At the very least, surely syntax errors in the str must raise errors outside eval so I think we (Doctest) should do try-catch here. Maybe do the "EXTRACTION_ERROR" on catch. |
Fixes #205. Add some tests but they will cause "make test" to fail. For now just put them in a `.m.txt`, which will stop doctest from finding them. Hopefully can address this as part of the BIST effort elsewhere.
The fix looks good to me. |
The doctest code that decides whether a test is skipped is an unprotected eval.
This means that an error in a tested file's skip condition definition will bubble up to the top, and abort the entire test run. This condition occurs with the doctest code in the Octave Forge interval and symbolic packages.
Maybe this
eval()
, and the others indoctest_run_tests
, should be protected by a try/catch that turns a bad skip or xfail definition into a test failure, instead of aborting the run?Caused apjanke/octave-testify#44.
The text was updated successfully, but these errors were encountered: