-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code coverage for maven #9539
Comments
JaCoCo, like Emma, is likely to only record coverage when tests are run in dev mode, and tests are run in prod mode by default in GWT 2.8 (as dev mode is deprecated) AFAIK, there's a way to generate instrumented JS code, but it's not well-integrated into any toolchain (except probably Google's internal build system). /cc @rluble as you're among the last ones to have touched coverage implementation, and @cromwellian as you reviewed the initial implementation. |
In our project we measure coverage of tests running with <plugin>
<groupId>org.jacoco<groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.jacoco.plugin}</version>
<executions>
<execution>
<id>default-instrument</id>
<goals>
<goal>instrument</goal>
</goals>
</execution>
<execution>
<id>default-restore-instrumented-classes</id>
<goals>
<goal>restore-instrumented-classes</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<!-- conf here -->
</configuration>
</execution>
</executions>
</plugin> |
Thank You, jomarko very much, Also found in google/gwtmockito#65 |
I'm using maven, and I want to find a way to get total coverage for my unit tests as I have
GwtMockitoTestRunner
andGWTTestCase
I tied to use Emma with maven but it gives me an error
then I tried Jacoco but it gives me 0% coverage
and this's my configuration at pom.xml file
please add a way to get code coverage for maven users.
The text was updated successfully, but these errors were encountered: