| ... | ... | @@ -397,9 +397,9 @@ running_scan: |
|
|
|
- Let's update version number to 1.01
|
|
|
|
- Specify sonar.source properly
|
|
|
|
- We only want to analyze server and client folders and config.js
|
|
|
|
- So we edit sonar.sources to like this ***sonar.sources=server, client, config.js***
|
|
|
|
- So we edit sonar.sources to like this ***sonar.sources=server, config.js***
|
|
|
|
- We also want to tell SonarQube where are unit test files
|
|
|
|
- Add this line to file ***sonar.tests=./server/tests***
|
|
|
|
- Add this line to file ***sonar.tests=tests***
|
|
|
|
- To add coverage's data we need to tell what is report's path
|
|
|
|
- Add this line to file ***sonar.javascript.lcov.reportPath=coverage/lcov.info***
|
|
|
|
- Not sure how this works but SonarScanner need this data to perform analyze correctly
|
| ... | ... | @@ -416,7 +416,7 @@ sonar.projectKey=testing |
|
|
|
sonar.projectName=CI-testing
|
|
|
|
sonar.projectVersion=1.0
|
|
|
|
sonar.sources=server, config.js
|
|
|
|
sonar.tests=./server/tests
|
|
|
|
sonar.tests=tests
|
|
|
|
sonar.javascript.lcov.reportPath=coverage/lcov.info
|
|
|
|
sonar.test.inclusions=**/*Test*/**
|
|
|
|
sonar.exclusions=**/*Test*/**
|
| ... | ... | |
| ... | ... | |