Skip to content

Ava continues testing even if assertion fails #2221

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

Closed
smyth64 opened this issue Aug 20, 2019 · 1 comment
Closed

Ava continues testing even if assertion fails #2221

smyth64 opened this issue Aug 20, 2019 · 1 comment

Comments

@smyth64
Copy link

smyth64 commented Aug 20, 2019

Description

I want to run 500 tests in parallel. Each test does a lot of operations and I want to abort the individual test if something fails. But it seems to be impossible.

I know there is the --fail-fast options but then all the remaining tests will be aborted aswell. I just want the individual test to abort because it's unnecessary to execute all other commands when an assertion fails.

Test Source

test("test", t => {
    console.log(123)
    t.assert(1 === 2)
    console.log(321)
})

Expected log:
123

Actual log:
123
321

I don't understand what's the purpose of keeping the test running after an assertion fails.

@novemberborn
Copy link
Member

Please see this discussion: #1485

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

No branches or pull requests

2 participants