From bc76bbe7b3b01447ce8c4c78935282b683c08f41 Mon Sep 17 00:00:00 2001 From: Santosh Shinde Date: Thu, 16 May 2024 22:57:27 +0530 Subject: [PATCH] update report --- .github/workflows/ci.yml | 10 +++++----- coverage/sonar-report.xml | 33 +++++++++++++++++---------------- jest.config.js | 6 +++--- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbdf032..a5fc5d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,15 +47,15 @@ jobs: -Dsonar.projectKey=santoshshinde2012_jest-to-sonar -Dsonar.projectName=jest-to-sonar -Dsonar.projectVersion=1.0 + -Dsonar.language=ts -Dsonar.sources=. - -Dsonar.test.inclusions=**/tests/**/*.ts + -Dsonar.tests=tests + -Dsonar.test.inclusions=tests/**/*.ts -Dsonar.coverage.exclusions=**/tests/**/*.ts,node_modules/*,coverage/lcov-report/* - -Dsonar.language=ts - -Dsonar.tests=./tests - -Dsonar.verbose=false - -Dsonar.sourceEncoding=UTF-8 -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info -Dsonar.testExecutionReportPaths=./coverage/sonar-report.xml + -Dsonar.sourceEncoding=UTF-8 + -Dsonar.verbose=false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/coverage/sonar-report.xml b/coverage/sonar-report.xml index 4947056..f2b132f 100644 --- a/coverage/sonar-report.xml +++ b/coverage/sonar-report.xml @@ -1,23 +1,24 @@ + - - - - - + + + + + - - - - - - - + + + + + + + - - + + - - \ No newline at end of file + + \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index eedb9fa..43c9750 100644 --- a/jest.config.js +++ b/jest.config.js @@ -4,8 +4,8 @@ module.exports = { roots: ['./tests'], coveragePathIgnorePatterns: ['/node_modules/', '/tests/'], collectCoverage: true, - reporters: ['default', ['./dist/index.js', { - outputFile: './coverage/sonar-report.xml', -}]], + // reporters: ['default', ['./dist/index.js', { + // outputFile: './coverage/sonar-report.xml', + // }]], testEnvironment: 'node', };