Skip to content

Commit

Permalink
update sonar report file name
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshshinde2012 committed May 15, 2024
1 parent fcf1d75 commit 0d5806c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions coverage/sonar-test-report.xml → coverage/sonar-report.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<testExecutions version="1">
<file path="/tests/lib/SonarReporter.spec.ts">
<testCase name="SonarReporter onTestResult should add test results to testFileResults" duration="0.002">
<testCase name="SonarReporter onTestResult should add test results to testFileResults" duration="0.001">
</testCase>
<testCase name="SonarReporter onRunComplete should write XML file with test results" duration="0.001">
<testCase name="SonarReporter onRunComplete should write XML file with test results" duration="0">
</testCase>
<testCase name="SonarReporter onRunComplete should use default output file if not provided" duration="0.001">
</testCase>
Expand All @@ -13,13 +13,13 @@
<file path="/tests/helpers/utils.spec.ts">
<testCase name="createFile function should create file with given data" duration="0.001">
</testCase>
<testCase name="createFile function should handle error when writing file" duration="0">
<testCase name="createFile function should handle error when writing file" duration="0.001">
</testCase>
<testCase name="generateXML generates correct XML with test cases of different statuses" duration="0.001">
<testCase name="generateXML generates correct XML with test cases of different statuses" duration="0">
</testCase>
<testCase name="generateXML generates correct XML with test cases of 0 duration" duration="0">
</testCase>
<testCase name="generateXML handles empty testFileResults map" duration="0">
<testCase name="generateXML handles empty testFileResults map" duration="0.001">
</testCase>
<testCase name="generateXML handles empty path" duration="0">
</testCase>
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
coveragePathIgnorePatterns: ['/node_modules/', '/tests/'],
collectCoverage: true,
reporters: ['default', ['./dist/index.js', {
outputFile: './coverage/sonar-test-report.xml',
outputFile: './coverage/sonar-report.xml',
}]],
testEnvironment: 'node',
};

0 comments on commit 0d5806c

Please sign in to comment.