Cobertura & JUnit reporting conflict

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cobertura & JUnit reporting conflict

John Siirola
I am seeing an strange conflict between the JUnit test report and the
Cobertura plug-in where if I enable the JUnit test report, the
Coertura plugin cannot render the source files claiming the "Source
code is unavailable".  If I disable the JUnit report, then everything
works fine.  Has anyone else seen anything like this?

I am running Hudson 1.312 and Cobertura plugin 0.8.8 (I saw the same
behavior with 1.304 and 0.8.7, too).  The project is a freestyle
project building C++ code, using cxxtest to generate the JUnit XML
test reports, gcov to generate the coverage statistics, and the python
gcovr script to convert the coverage into Cobertura-compatible XML.  I
get the same behavior if I build on the Master or on a remote slave.

Thanks,
john

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Cobertura & JUnit reporting conflict

Kohsuke Kawaguchi
Administrator

Never heard of it.

Any chance you can create a test case? Your can remove your real build
and replace it with an unzip command that extracts the report files that
your build creates, and that should be enough to fool Hudson.


John Siirola wrote:

> I am seeing an strange conflict between the JUnit test report and the
> Cobertura plug-in where if I enable the JUnit test report, the
> Coertura plugin cannot render the source files claiming the "Source
> code is unavailable".  If I disable the JUnit report, then everything
> works fine.  Has anyone else seen anything like this?
>
> I am running Hudson 1.312 and Cobertura plugin 0.8.8 (I saw the same
> behavior with 1.304 and 0.8.7, too).  The project is a freestyle
> project building C++ code, using cxxtest to generate the JUnit XML
> test reports, gcov to generate the coverage statistics, and the python
> gcovr script to convert the coverage into Cobertura-compatible XML.  I
> get the same behavior if I build on the Master or on a remote slave.
>
> Thanks,
> john
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment