Hi,

 

Here is a brief description of what we are doing and what we are looking
for.

 

We have setup a Jenkins Job to

 

*         Get sources from HG-repository

*         Instrument the sources with Clover

*         Build the "clovered" war

*         Run JUnit tests on clovered war, gathering the code coverage
data

*         Deploy the clovered war to another (Linux-) machine,
transferring clover db and traces there as well

*         Run Webtests (using Robot Framework and Selenium) on clovered
war, gathering the code coverage data

*         Getting the clover db and traces back to the Jenkins machine

*         Generating Reports on Jenkins machine

 

 

Everything is working fine so far, till we want to summarize and
aggregate the reports produced by these various tools. What we want to
have as output after the job completion would be an automatically
generated email with following data:

 

*         JUnit Tests Total/Failed <-- data comes from surefire plugin
responsible for running JUnit tests in Jenkins, but it is also available
in Clover reports

*         Webtests Total/Failed <-- data comes from Selenium/Robot
Framework, Clover knows nothing about that, right?

*         Total Code Coverage  <-- data comes from Clover

*         Branch Code Coverage <-- data comes from Clover

 

 

As you see, all the needed data is somehow available and can be
displayed in Jenkins. But it is scattered over different locations and
is present in different formats. Some reports are even generated on the
fly by the corresponding plugins.

 

The big question now is how to get this data easily to generate a
readable high level email. Is there a way to access this data directly
without parsing some xml or html sources or other hacks which would be
not necessarily accurate, hardly maintainable and not so trivial to
implement? Does Clover posts the summary data to some environment
variables which can be accessed directly from Jenkins (to put them into
the ext-email plugin, for example)?

 

Any help would be highly appreciated.

 

Michael

Reply via email to