Hi,
I use SonarQube in Bitbucket and have minor to no experience. I hope this question is not as stupid as I think it is.
As soon as I push new code to my Bitbucket repository , a pipeline will run sonar-scanner.
However, the code coverage in all of my projects stays at 0%. My package.json file looks as follows:
{
"name": "test",
"repository": {
"type": "git",
"url":
"https://bitbucket.org/test"
},
"scripts": {
"test": "ng test --watch=false --code-coverage=true",
"sonar": "sonar-scanner"
},
"engines": {
"node": ">=0.12.0"
}
}
Did I forget something?
Do I have to run tests via continuous integration before it even gets that information?
Kind regards,
Johannes