Skip to content

--fail-fast keeps running other test files #1158

Closed
@novemberborn

Description

@novemberborn

The test process that encounters the error simply exits if --fail-fast is enabled. Since each file runs in its own process, no other tests from that file are reported after the first failure is encountered.

However, other test processes run to completion. I'm not sure whether to:

  • terminate them outright, which prevents any cleanup, even if there are no failures in those processes
  • silence their output, which at least means the test output isn't cluttered with passing tests, but makes it harder to see why ava won't exit
  • shrug and say that this is expected

When running with limited concurrency we'll also run into this scenario, so we should implement the same behavior. Additionally we mustn't launch new test processes.

Any thoughts on what to do with processes that are already running?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions