Ava skips next tests in file if a previous test timeouts #3168
Unanswered
emilis-ideait
asked this question in
Q&A
Replies: 1 comment 2 replies
-
AVA's timeout detection works by tracking how long it's been since there was last an "event" coming out of a test worker. If that takes too long, the worker is stopped. Your setup executes tests serially, so subsequent tests are not run. I think if you'd use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Minimal reproducible example
In our test suite we have multiple
test(...)
tests per file. We are using Selenium to drive a browser in these tests.Sometimes a test runs longer than the specified timeout.
I noticed that in such case all the remaining tests in the file will be skipped and a "X tests were pending in example-file.js" message will be printed to output.
I expected only the slow test to timeout and the remaining tests to run.
ava.config.js:
Same happens with both Ava
4.2.0
and5.1.1
.Beta Was this translation helpful? Give feedback.
All reactions