Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshshinde2012 committed May 16, 2024
1 parent 0566467 commit 292c8ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions coverage/sonar-report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
<file path="tests/helpers/utils.spec.ts">
<testCase name="createFile function should create file with given data" duration="1" />
<testCase name="createFile function should handle error when writing file" duration="0" />
<testCase name="generateXML generates correct XML with test cases of different statuses" duration="0" />
<testCase name="generateXML generates correct XML with test cases of different statuses" duration="1" />
<testCase name="generateXML generates correct XML with test cases of 0 duration" duration="0" />
<testCase name="generateXML handles empty testFileResults map" duration="0" />
<testCase name="generateXML handles empty path" duration="0" />
<testCase name="generateXML handles empty path" duration="1" />
<testCase name="getRelativePath generates relative path correctly" duration="0" />
<testCase name="getRelativePath handles 'process.cwd()' in path" duration="1" />
<testCase name="getRelativePath handles 'process.cwd()' in path" duration="0" />
<testCase name="getRelativePath handles empty input string" duration="0" />
<testCase name="getRelativePath handles empty basePath" duration="0" />
</file>
<file path="tests/lib/SonarReporter.spec.ts">
<testCase name="SonarReporter onTestResult should add test results to testFileResults" duration="1" />
<testCase name="SonarReporter onRunComplete should write XML file with test results" duration="1" />
<testCase name="SonarReporter onRunComplete should write XML file with test results" duration="0" />
<testCase name="SonarReporter onRunComplete should use default output file if not provided - skipped" duration="0" >
<skipped message="SonarReporter onRunComplete should use default output file if not provided - skipped" />
</testCase>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-to-sonar",
"version": "1.2.0",
"version": "1.3.0",
"description": "Convert the Jest test case report to a Sonar generic test execution report.",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/SonarReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class SonarReporter<T extends IConfig> implements Reporter {
name: fullName,
duration: duration ?? 0,
status,
failureMessages: failureMessages
failureMessages: failureMessages,
}));
this.testFileResults.set(getRelativePath(test.path), testCases);
}
Expand Down

0 comments on commit 292c8ac

Please sign in to comment.