Tuesday 15 January 2013

sonarqube - How to get code coverage for tests run using QF test tool -



sonarqube - How to get code coverage for tests run using QF test tool -

i utilize qf test tool (http://www.qfs.de/en/qftest/) run integrated ui based tests . there tool can code coverage of qft test suites ? note : utilize sonar (jacoco plugin) code coverage junit tests . googled lot , couldn't find relevant documentation . links documentation or illustration helpfull

oyes, possible. i'm using qf-test jenkins ci, sonar , jacoco.

to maintain short, in qf-test go step invokes sut , add together -javaagent: parameter program

e.g.:

-javaagent:/path/to/mvnlib/org.jacoco.agent-0.6.4.201312101107-runtime.jar=destfile=/usr/share/tomcat6/.jenkins/jobs/integration_build/workspace/your.program.test/jacoco/jacoco-qf.exec,includes=your.packages.*,output=file

configure jenkins (with jacoco plugin) jacoco-qf.exec file.

ps: if utilize regular junit tests should combine both coverage of qf-test , junit ant script:

<jacoco:merge destfile="${jacoco.file}">     <fileset dir="${jacoco.report.dir}" includes="*.exec"/> </jacoco:merge>

sonarqube code-coverage qf-test

No comments:

Post a Comment