You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ava skips next tests in file if a previous test timeouts #3165
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'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 t.timeout() within the test, then that specific test would time out but the rest would continue running.
Activity
novemberborn commentedon Feb 6, 2023
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
t.timeout()within the test, then that specific test would time out but the rest would continue running.