Skip to content

Commit

Permalink
Merge pull request #57 from fga-eps-mds/fix/test-report
Browse files Browse the repository at this point in the history
FIX: Adição de lib para report de duração de teste
  • Loading branch information
JPedroCh authored Jul 4, 2023
2 parents fbd7372 + 579e45e commit 74e2ed5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"react-render-if-visible": "^2.1.1",
"react-router-dom": "^6.6.1",
"react-toastify": "^9.1.2",
"sass": "^1.57.1"
"sass": "^1.57.1",
"vitest-sonar-reporter": "^0.4.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
Expand Down
6 changes: 3 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ sonar.organization=fga-eps-mds-1

sonar.sources=.
sonar.exclusions=**/*.spec.tsx,**/metrics/*.py
sonar.tests=./src,
sonar.test.inclusions=**/*.spec.tsx,**/*.spec.ts,
sonar.typescript.lcov.reportPaths=./coverage/lcov.info,
sonar.tests=./src
sonar.test.inclusions=**/*.spec.tsx,**/*.spec.ts
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar.eslint.reportPaths=reports/eslint-report.json
sonar.testExecutionReportPaths=coverage.xml
sonar.sourceEncoding=UTF-8
2 changes: 2 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export default defineConfig({
coverage: { reporter: ['lcov', 'html'] },
environment: 'jsdom',
setupFiles: './src/config/tests/setup-tests.ts',
reporters: 'vitest-sonar-reporter',
outputFile: 'coverage.xml',
},
});

0 comments on commit 74e2ed5

Please sign in to comment.