Skip to content

Fail when --concurrency is set to 0 #1476

@novemberborn

Description

@novemberborn

Inspired by #1463. --concurrency=0 currently means AVA spins up as many workers as there are test files, and when #1467 lands it means AVA spins up as many workers as there are CPU cores. In either case, we should refuse to run tests when the value is set to 0 since AVA's behavior won't match user expectations.

See a similar test in lib/cli.js:

ava/lib/cli.js

Line 121 in a0d5b37

if (cli.flags.concurrency === '') {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions