Skip to content

Improve reporter output when watch mode runs test files without exclusive tests #635

@novemberborn

Description

@novemberborn

.only is sticky in watch mode. If the watcher detects it in one file, and then needs to run tests from another, it only runs exclusive tests from that second file. If the second file does not contain any exclusive tests no tests are run. With the mini reporter the output in this case is simply "0 tests passed". This may be confusing to users.

Instead the reporters (mini, verbose and tap) should detect this scenario and output something like "no exclusive tests found".

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions