From 8abf8ff9c84a75fe390aa2bac739246ce9b3d60f Mon Sep 17 00:00:00 2001 From: lohxt1 Date: Tue, 4 Feb 2025 19:52:58 +0530 Subject: [PATCH] skipped request should not be considered as errors in junit reports --- packages/bruno-cli/src/reporters/junit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/bruno-cli/src/reporters/junit.js b/packages/bruno-cli/src/reporters/junit.js index 30fb51939..e4a622722 100644 --- a/packages/bruno-cli/src/reporters/junit.js +++ b/packages/bruno-cli/src/reporters/junit.js @@ -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 = [