-
Notifications
You must be signed in to change notification settings - Fork 110
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
Exceptions cause entire test suite to fail early #25
Comments
This looks like a bug. Can you create a self-contained example? |
Oddly, my initial attempts to reproduce this on a smaller test case have the correct behavior... I'll try and give this another stab tomorrow. |
Closing for now. Feel free to comment/reopen with more info. |
I can't re-open it, but I don't see why this should be closed - the problem has not been fixed. While I didn't produce a minimal test case, I have code that will reproduce it. I'll point to that commit shortly. |
Because there's no way for anyone to diagnose and fix this without being able to reproduce it. Please do point to your code, and I'll reopen. |
Grab https://github.com/ocharles/language-postgresql/tree/tasty You will need
Should produce:
|
I should also mention these are the libraries I have installed:
|
This should be fixed now. The problem was that the failure message threw an exception when printed. The message could be better (it could print some initial part of the message before the exception is thrown), but I'll leave it to someone else (or the future myself) to do. |
Ha, what a fun little bug! Thanks for getting this fixed, sorry for not throwing the code up sooner :) |
This also affects |
I'm trying to implement a combination of a lexer/parser for SQL, and as such was hoping to just stub out swaths of SQL that my parser can't currently handle, and gradually implement them all to green and then move on. As such, I have something like the following:
However, the first test that fails:
causes the entire test executable to stop - no summary, no further tests.
I would expect each test to be bracketed for exceptions, so that one exception doesn't prevent everything from running.
The text was updated successfully, but these errors were encountered: