Hello,

I am sorry for the delay in responding.  The Jenkins coverage report is created 
using a "publisher" in the JJB [1].  So from the verify job [2], I request that 
nosetests creates a coverage xml file, which is coberatura compatible.  It is 
that coverage.xml which the publisher uses.  There are also targets that can be 
specified so that Jenkins can automatically -1 a patch if coverage falls below 
a threshold, but I have not played with them.

I also request it create coverage output in html, so it can be easily browsed 
locally if desired.

[1] https://github.com/opnfv/releng/blob/master/jjb/storperf/storperf.yml#L67
[2] https://github.com/opnfv/storperf/blob/master/ci/verify.sh#L57

Regards,
Mark

Mark Beierl
Advisory Solutions Architect
Dell EMC | Office of the CTO
mobile +1 613 314 8106<tel:1-613-314-8106>
mark.bei...@dell.com<mailto:mark.bei...@dell.com>

On Feb 6, 2017, at 08:50, Yujun Zhang (ZTE) 
<zhangyujun+...@gmail.com<mailto:zhangyujun+...@gmail.com>> wrote:

Mark demonstrated a pretty test coverage report in last testperf meeting[1]. 
And we want to have similar report in QTIP.

I have implemented the coverage test in QTIP verify job[2]. I wonder what will 
be the next step to generate such diagram in jenkins.

@Mark, do you have a brief how-to document or any recommended guide for us to 
follow?

[1]: 
https://build.opnfv.org/ci/view/storperf/job/storperf-verify-master/123/cobertura/
[2]: https://gerrit.opnfv.org/gerrit/#/c/28055/


--
Yujun Zhang

_______________________________________________
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to