Skip to content

Conversation

@gbudjeakp
Copy link

This PR implements QUnit.config.testFilter, a new configuration option that allows programmatic filtering of tests at runtime through a callback function.

Context:
Currently, QUnit provides filtering through CLI parameters (--filter, --module, etc.) and test-level methods test.only(), test.skip(), but there's no way to implement dynamic, programmatic filtering based on runtime conditions without modifying test code.

This feature enables several important use cases:

  • Quarantining flaky tests in CI without modifying test code
  • Parallel test execution by distributing tests across workers via hash-based sharding
  • Runtime capability detection to skip tests for unavailable browser features (WebGL, IndexedDB, etc.)
  • Dynamic test selection based on external data sources (APIs, configuration files)

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 5, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: gbudjeakp / name: Akpevwen Sebastian Gbudje (a2d1e2a)

@gbudjeakp gbudjeakp marked this pull request as ready for review November 10, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant