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)

@Krinkle
Copy link
Member

Krinkle commented Dec 17, 2025

Fixed macOS build in 9de4ec6.

@Krinkle Krinkle closed this Dec 17, 2025
@Krinkle Krinkle reopened this Dec 17, 2025
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.

2 participants