skipped request should not be considered as errors in junit reports

This commit is contained in:
lohxt1
2025-02-04 19:52:58 +05:30
committed by Anoop M D
parent ec5a5c9b56
commit 8abf8ff9c8

View File

@@ -62,7 +62,10 @@ const makeJUnitOutput = async (results, outputPath) => {
suite.testcase.push(testcase);
});
if (result.error) {
if (result?.skipped) {
suite['@skipped'] = 1;
}
else if (result.error) {
suite['@errors'] = 1;
suite['@tests'] = 1;
suite.testcase = [