-
Notifications
You must be signed in to change notification settings - Fork 778
Open
Labels
Type: EnhancementNew idea or feature request.New idea or feature request.
Milestone
Description
I see that there exists QUnit.test.if(name, condition, testCallback), but using this does not integrate well with flaky-test quarantine strategies.
For example, when running tests, we generate an ourput file (JUnit XML, or whatever), and then the quarantine system interprets that and does some analysis to determine if a test is flaky (over the course of multiple runs).
Next time we start a test suite, we have the list of known flaky tests ahead of time (as a json object available to us on page load).
I'd like to have something like:
const myQuarantineList = []; // actually from file / api / whatever
QUnit.config.testIf((info) => {
let { id, name } = info;
let isQuarantined = myQuarantineList.find(x => {
if (name === x) return true;
return new RegExp(x).test(name);
});
return !isQuarantined;
});wagenet and gbudjeakp
Metadata
Metadata
Assignees
Labels
Type: EnhancementNew idea or feature request.New idea or feature request.