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

Allow CLI to select a subset of test files, using micromatch-compatible patterns #2281

Closed
novemberborn opened this issue Oct 29, 2019 · 0 comments · Fixed by #2326
Closed
Assignees
Labels
breaking requires a SemVer major release enhancement new functionality help wanted scope:globbing
Milestone

Comments

@novemberborn
Copy link
Member

AVA 2 removed glob support from the CLI, under the assumption that user's shells could expand globs instead. This assumption has proven wrong, however.

Currently, positional arguments passed on the CLI are assumed to be test files. They're executed even if they're not matched by the files configuration.

The proposal is to treat the positional arguments as a filter over the configured files. This should use micromatch so glob patterns are supported.

This is a breaking change, since it'll no longer be possible to execute test files that are not matched by the files configuration. We should start with this behavior being an opt-in experiment (see the experiments here).

@novemberborn novemberborn added enhancement new functionality help wanted breaking requires a SemVer major release scope:globbing labels Oct 29, 2019
@novemberborn novemberborn added this to the v3 milestone Dec 21, 2019
@novemberborn novemberborn self-assigned this Jan 2, 2020
novemberborn added a commit that referenced this issue Jan 2, 2020
Rather than providing paths to specific test files, allow
micromatch-compatible patterns to be provided on the CLI. These then
select a subset of test files.

This does mean that the files patterns in AVA's configuration need to
select all desired test files: you can no longer run a different file.

Fixes #2281.
novemberborn added a commit that referenced this issue Jan 2, 2020
Rather than providing paths to specific test files, allow
micromatch-compatible patterns to be provided on the CLI. These then
select a subset of test files.

This does mean that the files patterns in AVA's configuration need to
select all desired test files: you can no longer run a different file.

Fixes #2281.
novemberborn added a commit that referenced this issue Jan 2, 2020
Rather than providing paths to specific test files, allow
micromatch-compatible patterns to be provided on the CLI. These then
select a subset of test files.

This does mean that the files patterns in AVA's configuration need to
select all desired test files: you can no longer run a different file.

Fixes #2281.
novemberborn added a commit that referenced this issue Jan 2, 2020
Rather than providing paths to specific test files, allow
micromatch-compatible patterns to be provided on the CLI. These then
select a subset of test files.

This does mean that the files patterns in AVA's configuration need to
select all desired test files: you can no longer run a different file.

Fixes #2281.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking requires a SemVer major release enhancement new functionality help wanted scope:globbing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant