Cross project clover coverage

Clark Wright September 14, 2011

We are in the process of refactoring our app into multiple projects.

As we are moving the unit tests to the correct project (including the class file), we are starting to see some classes that used to have coverage from a variety of different tests stop showing any coverage at all once the unit tests are no longer in that project (but are in the same package).

The tests in question are being run (with clover instrumentation) successfully - no failures, no errors. And no code coverage for classes in a different project.

Any idea of why this is happening?

Now, to be clear, up until this time *all* of our unit tests where in a different project from the classes they were testing. This has only started to happen as we move the unit tests into the correct projects (and out of the massive catch basin).

Thanks,

Clark.

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2012

Hi Clark,

you didn't wrote what IDE you were using. I would recommend making a full rebuild, including cleaning of Clover database files after your relocation of files is finished. Eclipse, IDEA and/or Clover could had something left in their caches.

Regards
Marek

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events