Open kevinushey opened 1 month ago
It is probably doable. I do have my doubts if you would want that. Once an error is thrown, the code after that usually doesn't run, so you'd get a whole list of errors. Don't we want to be warned ASAP?
Thinking out loud: it would require some rewiring because tinytest
only captures the output of test_
statements, all other code is executed but otherwise ignored.
For what it's worth, I agree the current test should halt execution -- I was just hoping that other test files could continue execution in that scenario as well. (under the assumption that each test should be an independent execution unit)
If not, then I think a message indicating which test the error occurred in would be useful.
To reproduce:
I see:
Could
tinytest
instead capture errors seen when executing test files, and report those and allow other tests to continue executing? (Or at least, report what file the error was caught in, or other diagnostic information?)