test(linter/plugins): allow filtering by rule or test case in conformance tester#16659
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
This PR adds filtering capabilities to the conformance tester to facilitate debugging specific rules or test cases. By setting exported constants in a new filter.ts file, developers can focus testing on a single rule or a specific test case code, significantly improving the debugging experience.
Key Changes
- Created
filter.tswith exported filter constants for rule name and test code - Integrated rule-level filtering in test file discovery
- Implemented test case filtering at the test runner level
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| apps/oxlint/conformance/src/filter.ts | Introduces FILTER_ONLY_RULE and FILTER_ONLY_CODE constants for selective test execution |
| apps/oxlint/conformance/src/run.ts | Filters discovered test files based on FILTER_ONLY_RULE before execution |
| apps/oxlint/conformance/src/rule_tester.ts | Overrides run() method to filter valid and invalid test cases by FILTER_ONLY_CODE |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
…ance tester (#16659) Add ability to filter tests in the conformance tester. This is useful while debugging specific test cases.
1e9ae6a to
f791273
Compare
c1324c6 to
973a1ba
Compare
…ance tester (#16659) Add ability to filter tests in the conformance tester. This is useful while debugging specific test cases.
#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.
#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.
…ance tester (oxc-project#16659) Add ability to filter tests in the conformance tester. This is useful while debugging specific test cases.
…ect#16692) oxc-project#16659 added filtering to the conformance tester. Make the filters more flexible by accepting an array of strings, as well as a single string.

Add ability to filter tests in the conformance tester. This is useful while debugging specific test cases.