Results 1 to 2 of 2

Thread: Cobertura question

  1. #1
    Join Date
    Jan 2008
    Posts
    182

    Default Cobertura question

    So I thought I'd institute code coverage in our team. I've got cobertura up and running. The problem is that it is lying to us.
    The instrumented jar contains a particular package with eight classes in it. If I run the tests I get a report that shows 100% coverage for that package, but only shows 3 classes (the classes that were loaded during testing). It completely misses that the other 5 were untested.

    Is cobertura really completely broken, or am I doing something wrong?

    In the meantime, is there some way to force all classes in a jar to be loaded, or am I going to have to brute force read the jar contents and do a Class.forName() ?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    182

    Default

    Fixed. We had datafile specified for all cobertura tasks except the instrument task.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •