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)
  • Maven 2.x Cobertura Plugin
  • MCOBERTURA-77

Test failures after upgrade to Cobertura 1.9

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 2.2
  • Fix Version/s: 2.2
  • Labels:
    None
  • Environment:
    Windows XP, Sun Java 1.4.2_16, Maven 2.0.4/2.0.5/2.0.6/2.0.7, Surefire plugin 2.2/2.3

Description

Running 'mvn test' (after specifying which version of the surefire-plugin to use) with the current trunk fails with the following console output:

Running org.codehaus.mojo.cobertura.CoberturaCheckMojoTest
[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 1 classes.

[ERROR] Circle failed check. Line coverage rate of 0.0% is below 80.0%
Package failed check. Package line coverage rate of 0.0% is below 80.0%
Project failed check. Total line coverage rate of 0.0% is below 80.0%

[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 1 classes.

[ERROR] Circle failed check. Line coverage rate of 0.0% is below 80.0%
Package failed check. Package line coverage rate of 0.0% is below 50.0%
Project failed check. Total line coverage rate of 0.0% is below 50.0%

[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 1 classes.

[ERROR] Circle failed check. Line coverage rate of 0.0% is below 100.0%
Package failed check. Package line coverage rate of 0.0% is below 50.0%
Project failed check. Total line coverage rate of 0.0% is below 50.0%

[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 1 classes.

[ERROR] Circle failed check. Line coverage rate of 0.0% is below 100.0%
Package failed check. Package line coverage rate of 0.0% is below 100.0%
Project failed check. Total line coverage rate of 0.0% is below 100.0%

[INFO] Cobertura 1.9 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 1 classes.

[ERROR] Circle failed check. Line coverage rate of 0.0% is below 100.0%
Package failed check. Package line coverage rate of 0.0% is below 100.0%
Project failed check. Total line coverage rate of 0.0% is below 100.0%

[ERROR] Coverage check failed. See messages above.
[INFO] Cannot perform check, instrumentation not performed - skipping.
Tests run: 7, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.61 sec <<< FAILURE!

Attached is the surefire report.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    org.codehaus.mojo.cobertura.CoberturaCheckMojoTest.txt
    21/Nov/07 1:22 PM
    5 kB
    Dennis Lundberg

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Dennis Lundberg added a comment - 21/Nov/07 1:23 PM

This will need to be fixed somehow before 2.2 is released.

Show
Dennis Lundberg added a comment - 21/Nov/07 1:23 PM This will need to be fixed somehow before 2.2 is released.
Hide
Permalink
Dennis Lundberg added a comment - 24/Nov/07 12:22 PM

I had a look at the cobertura report that is generated when running the tests. It says
"Unable to locate Circle.java. Have you specified the source directory?"

Does Cobertura 1.9 require the source (java) file of everything it instruments? As it is now we only have the compiled class file and the check.ser file.

Show
Dennis Lundberg added a comment - 24/Nov/07 12:22 PM I had a look at the cobertura report that is generated when running the tests. It says "Unable to locate Circle.java. Have you specified the source directory?" Does Cobertura 1.9 require the source (java) file of everything it instruments? As it is now we only have the compiled class file and the check.ser file.
Hide
Permalink
Dennis Lundberg added a comment - 09/Dec/07 6:31 AM

The test failures are not Windows specific. They occur on OS X and Linux as well.

Show
Dennis Lundberg added a comment - 09/Dec/07 6:31 AM The test failures are not Windows specific. They occur on OS X and Linux as well.
Hide
Permalink
Arnaud Heritier added a comment - 09/Dec/07 4:09 PM

Fixed by regenerating files serialized by cobertura.
If someone can test if tests are working on a different OS than Win XP...

Show
Arnaud Heritier added a comment - 09/Dec/07 4:09 PM Fixed by regenerating files serialized by cobertura. If someone can test if tests are working on a different OS than Win XP...

People

  • Assignee:
    Arnaud Heritier
    Reporter:
    Dennis Lundberg
Vote (0)
Watch (0)

Dates

  • Created:
    21/Nov/07 1:22 PM
    Updated:
    09/Dec/07 4:09 PM
    Resolved:
    09/Dec/07 4:09 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.