working on test and sonar
continuous-integration/drone/push Build is passing Details

WORK-RHA
Rémi REGNAULT 1 year ago
parent 1f3011177c
commit a3cf39004c

@ -105,5 +105,5 @@ steps:
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH - export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server" - export SONAR_SCANNER_OPTS="-server"
- sonar-scanner -X -D sonar.projectKey=LeftOvers_Api -D sonar.sources=. -D sonar.testExecutionReportPaths=./API-Project/reports/lcov.info -D sonar.host.url=https://codefirst.iut.uca.fr/sonar - sonar-scanner -X -D sonar.projectKey=LeftOvers_Api -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
depends_on: [ publish-jest-reports ] depends_on: [ publish-jest-reports ]

@ -38,11 +38,10 @@
"jest": { "jest": {
"preset": "ts-jest", "preset": "ts-jest",
"testMatch": ["<rootDir>/tests/**/*.spec.ts"], "testMatch": ["<rootDir>/tests/**/*.spec.ts"],
"coverageReporters": ["json", "lcov", "text", "clover"], "testResultsProcessor": "jest-sonar-reporter"
"coverageDirectory": "./coverage"
}, },
"jestSonar": { "jestSonar": {
"reportPath": "./reports", "reportPath": "./coverage",
"reportFile": "report.test.xml" "reportFile": "sonar-report.test.xml"
} }
} }

Loading…
Cancel
Save