Has anyone used gulp-jasmine-browser with phanotomjs and istanbul for coverage successfully? gulp-jasmine-browser doesn't have official support for coverage.
Related
Why gradlew connectedCheck does not generate instrumental or UI test coverage reports? It does generate report but does not show any coverage. Is there an actual way to get the coverage from the instrumental and UI tests? I did not find any reference in official android testing guides/documentation.
Does SonarQube always require an external code coverage tool like jacoco (Java), Coverage (python), gcov (c/c++), in order to show coverage on a sonar server?
SonarQube by itself doesn't do any coverage. Its the job for other tools like jacoco and others.
However SonarQube can gather the "results" relevant to the project quality (of course including coverage as an important code quality metric) of the build and allows tracking of the quality over time.
Usually you run coverage tool first, it "adjusts" the code, then you run the tests in the build. Coverage tool creates some results, and only after that you run sonar plugin that processes the results and sends to the sonar qube server.
So, to answer your question: Yes, without an external code coverage tool, sonar won't produce any coverage results, and no, it doesn't have a "default, built-in" coverage tool
How can i measure the coverage of the manual tests?
Are there tools to measure the coverage of the manual tests?
I have searched but all the articles refer to unit tests
Thank you
The tools for measuring coverage of manual tests are also manual. You need to count the possible execution branches of the code and those which you covered. Coverage would be this ration of covered/all
When using Cobertura I am able to display unit and integration test coverage separately in Sonar however I can't find a way to display the overall test coverage..
The Sonar documentation implies this is possible using Jacoco but I wondered if it was also possible using Cobertura?
Many thanks
It is not possible, at least not with sonarqube 4.3.
You could however, combine unit-test-coverage generated with cobertura with integration-test-coverage generated with jacoco.
The documentation sais clearly:
"If coverage by unit tests is not computed with JaCoCo, overall coverage = integration test coverage."
You can find the documentation here:
http://docs.codehaus.org/display/SONAR/Code+Coverage+by+Integration+Tests+for+Java+Project
Sorry and good luck with yout further configuration!
Which plug-in needs to installed to get the code coverage metrics in sonar reports? It was working fine for previous version(3.7.3) and now I am using 4.1.1 I can only see the unit test coverage. I need both if possible.