JSF & Java Blog

Discussion on Java and JSF, including Spring, Maven, Eclipse and Jenkins

Posts Tagged / Cobertura

Useful Eclipse Plugins

A list of handy Eclipse plugins for the Eclipse IDE eCobertura – Allows Cobertura code coverage to be run from the IDE directly eclipse-cs – Enforces coding standards using the CheckStyle tool PMD – Scans Java code and reports potential problems M2Eclipse – Maven integration from Sonatype m2e-extensions – Works with version 0.10 of the […]

1

Cobertura code coverage with Maven and PowerMock

If you use Powermock for unit testing with Maven and Cobertura for code coverage, you are likely to be affected by the following issue noted on the PowerMock issue tracker. If you did not have the maven-surefire-plugin forkmode configured to ‘pertest’, you would find that any tests annotated with @RunWith(PowerMockRunner.class) had zero percentage code coverage […]

3