Skip to content
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

No feedback from test timeout #2916

Closed
homostellaris opened this issue Dec 20, 2021 · 2 comments
Closed

No feedback from test timeout #2916

homostellaris opened this issue Dec 20, 2021 · 2 comments

Comments

@homostellaris
Copy link

If you set a timeout for an individual test using t.timeout you get feedback as I'd expect.

Error: Test timeout exceeded

But if you pass the timeout from the CLI it just prints a blank line and exits with code 1. You can reproduce by running npx ava timeout.test.js --timeout 1s on the following.

import test from 'ava'

test.cb('Test timeout', t => {
  setTimeout(t.end, 2000)
  t.assert(true)
})
@mislav
Copy link

mislav commented Dec 23, 2021

The timeout failure seems printed in --verbose mode but not in regular mode. For now, -v could be used as temporary workaround.

Likely duplicate of #2639

@novemberborn
Copy link
Member

Due to this issues, AVA 4 has removed non-verbose mode and defaults to verbose. Which sort of "solves" the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants