Skip to content

feat(cli): filter tests by vars - #2

Open
RGBuilds wants to merge 1 commit into
mainfrom
cursor/filter-test-vars-ebe1
Open

feat(cli): filter tests by vars#2
RGBuilds wants to merge 1 commit into
mainfrom
cursor/filter-test-vars-ebe1

Conversation

@RGBuilds

@RGBuilds RGBuilds commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • add repeatable --filter-vars key=value selection with AND semantics
  • support exact string, number, boolean, and structured JSON variable matching
  • include inherited defaultTest.vars while excluding runtime-only variables
  • document the new CLI filter and add regression coverage

Testing

  • npx vitest run test/util/eval/filterTests.test.ts test/commands/eval/evaluateOptions.test.ts test/types/index.test.ts (3 files, 503 tests passed)
  • npm run tsc
  • npm run local -- eval -c test/smoke/fixtures/configs/multi-test.yaml --filter-vars role=admin --filter-vars name=Charlie --no-cache -o /tmp/filter-vars-result.json (1 passed, 0 failed, 0 errors)
  • pre-commit Biome and Prettier checks pass
Open in Web Open in Cursor 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants