ci: Fix test exclusion list in combination with other exclusions (#9277)

This commit is contained in:
Manuel
2024-08-13 22:13:19 +02:00
committed by GitHub
parent 9fd707092e
commit 9552a4cbee
42 changed files with 281 additions and 293 deletions

View File

@@ -470,27 +470,15 @@ try {
/**
* Assign ID to test and run it. Disable test if its UUID is found in testExclusionList.
* @param {String} id The UUID of the test.
* @param {any} func The test function.
*/
global.it_id = (id, func) => {
if (testExclusionList.includes(id)) {
return xit;
} else {
return func || it;
}
};
/**
* Assign ID to test and run only this test. Disable test if its UUID is found in testExclusionList.
* @param {String} id The UUID of the test.
* @param {any} func The test function.
*/
global.fit_id = (id, func) => {
if (testExclusionList.includes(id)) {
return xit;
} else {
return func || fit;
}
global.it_id = id => {
return testFunc => {
if (testExclusionList.includes(id)) {
return xit;
} else {
return testFunc;
}
};
};
global.it_only_db = db => {