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 0d5806c commit fdb9e72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
-Dsonar.tests=./tests
-Dsonar.verbose=false
-Dsonar.sourceEncoding=UTF-8
-Dsonar.javascript.lcov.reportPaths=${{github.workspace}}/coverage/lcov.info
-Dsonar.testExecutionReportPaths=${{github.workspace}}/coverage/sonar-report.xml
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
-Dsonar.testExecutionReportPaths=./coverage/sonar-report.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 3 additions & 3 deletions 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.001">
<testCase name="SonarReporter onTestResult should add test results to testFileResults" duration="0.002">
</testCase>
<testCase name="SonarReporter onRunComplete should write XML file with test results" duration="0">
<testCase name="SonarReporter onRunComplete should write XML file with test results" duration="0.001">
</testCase>
<testCase name="SonarReporter onRunComplete should use default output file if not provided" duration="0.001">
</testCase>
Expand All @@ -13,7 +13,7 @@
<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.001">
<testCase name="createFile function should handle error when writing file" duration="0">
</testCase>
<testCase name="generateXML generates correct XML with test cases of different statuses" duration="0">
</testCase>
Expand Down

0 comments on commit fdb9e72

Please sign in to comment.