jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Cobertura Plugin
  • Maven 2.x Cobertura Plugin
  • MCOBERTURA-25

0% Code coverage reported

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Maven 2.0.3.
    cobertura-maven-plugin-2.0-20060331.055400-6
    surefire 2.2-SNAPSHOT
  • Number of attachments :
    0

Description

I have an EJB 3 project that runs JUnit tests by invoking a JUnit TestSuite that starts up the JBoss EJB 3 embeddable, runs the unit tests in the container, shuts down the container.

I explicitly deploy the cobertura instrumented classes to the EJB 3 container.

When cobertura produces its report, it reports that there is 0% code coverage. All the unit tests run correctly and pass. The generated cobertura.ser file is created in the base directory of the project. No stack traces or errors appear in mavens output. I am running

mvn clean cobertura:clean cobertura:cobertura

If I take the generated cobertura.ser file, download cobertura 1.7 and run cobertura-report.sh script against the cobertura.ser I get the correct code coverage report.

So, something is going wrong when the report is running, since the ser file is correct when run with cobertura at command line.

Unfortunately I cannot attach a test case as we had to manually add lots of EJB 3 embeddable jars to our repo that are not available on ibiblio. So any test case I would upload would not build.

If you require any further information I can provide it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Allan Ramirez added a comment - 24/Apr/06 12:44 AM

Hi, I also had the same problem, What is the version of your maven-surefire-plugin? By that time, I am using maven-surefire-plugin 2.1.4-SNAPSHOT.
I just changed the version of maven-surefire-plugin in the metadata back to 2.1.3-SNAPSHOT and it worked.

So I guess this issue should be move to MSUREFIRE

Show
Allan Ramirez added a comment - 24/Apr/06 12:44 AM Hi, I also had the same problem, What is the version of your maven-surefire-plugin? By that time, I am using maven-surefire-plugin 2.1.4-SNAPSHOT. I just changed the version of maven-surefire-plugin in the metadata back to 2.1.3-SNAPSHOT and it worked. So I guess this issue should be move to MSUREFIRE
Hide
Permalink
Brett Porter added a comment - 05/May/06 10:07 PM

should be addressed by latest surefire changes

Show
Brett Porter added a comment - 05/May/06 10:07 PM should be addressed by latest surefire changes
Hide
Permalink
Adrian added a comment - 22/May/06 7:57 AM

I have noticed that if I build

mvn clean site I get 0% coverage

mvn site I get correct report

I haven't managed to get any new version of surefire working? Latest surefire plugin breaks my builds all over the place.

Show
Adrian added a comment - 22/May/06 7:57 AM I have noticed that if I build mvn clean site I get 0% coverage mvn site I get correct report I haven't managed to get any new version of surefire working? Latest surefire plugin breaks my builds all over the place.
Hide
Permalink
Paul Phillips added a comment - 13/Aug/07 9:44 AM

I am also getting this error with maven 2.0.7 and maven-surefire-plugin 2.3 running with cobertura-maven-plugin 2.1. The cobertura-check.bat reports correctly the contents of the cobertura.ser file.

Any idea what may be causing this issue or how to get around it without building the site twice - as this will double an already quite long build time.

Show
Paul Phillips added a comment - 13/Aug/07 9:44 AM I am also getting this error with maven 2.0.7 and maven-surefire-plugin 2.3 running with cobertura-maven-plugin 2.1. The cobertura-check.bat reports correctly the contents of the cobertura.ser file. Any idea what may be causing this issue or how to get around it without building the site twice - as this will double an already quite long build time.

People

  • Assignee:
    Brett Porter
    Reporter:
    Adrian
Vote (0)
Watch (4)

Dates

  • Created:
    11/Apr/06 5:35 AM
    Updated:
    13/Aug/07 9:44 AM
    Resolved:
    05/May/06 10:07 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.