Open jamestalmage opened 8 years ago
I like the idea of being as graceful a possible. One concern though. Look at it the other way around. What if you have a lot of tests and you use one of them incorrectly. Now it will run all the tests before letting you know you have an issue and then you'll have to rerun the whole test file again. Just a thought.
Now it will run all the tests before letting you know you have an issue and then you'll have to rerun the whole test file again. Just a thought.
No reason we can't report it as an error as soon as it's encountered.
No reason we can't report it as an error as soon as it's encountered.
You probably won't notice it though.
Why not? If it increases the error count, that's noticeable immediately.
Why not? If it increases the error count, that's noticeable immediately.
Fair enough.
This will be easiest to implement once https://github.com/avajs/ava/pull/2217 lands.
@issuehunt has funded $40.00 to this issue.
Sometimes you get sloppy / distracted and end up with a half completed test:
Instead of throwing when someone misuses the API, I think the misuse should just be reported as a failure. It should still execute the correctly written tests.