-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Maven test fails to run moco server when using jacoco maven plugin 0.7.8 or newer #816
Comments
@chenhengjie123 the list of dependencies is definitely incomplete:
So could you please attach zip with complete example without |
I have just uploaded the simplest project on https://github.com/chenhengjie123/ReproduceJacocoWithMoco. It can reproduce this issue. |
And it shows different stack trace:
whose most relevant part is -
JaCoCo <=0.7.7 works, because in addition to field being As a workaround seems possible to exclude classes from instrumentation as following: <execution>
<goals>
<goal>prepare-agent</goal>
</goals>
+ <configuration>
+ <excludes>com/github/dreamhead/moco/*</excludes>
+ </configuration>
</execution> with and without update to latest - <jacoco.maven.plugin.version>0.7.8</jacoco.maven.plugin.version>
+ <jacoco.maven.plugin.version>0.8.2</jacoco.maven.plugin.version> |
OK,I got it. The trace is different maybe cause by the origin project has other configs. Since it's a company project, I could not share the whole project, so I create this new project instead. Thanks a lot! |
This is a issue tracker. Please use our mailing list for general questions:
https://groups.google.com/forum/?fromgroups=#!forum/jacoco
Also check FAQ before opening an issue: http://www.jacoco.org/jacoco/trunk/doc/faq.html
Steps to reproduce
test case code:
configuration in pom.xml:
error occurs when running
mvn test
to run tests with jacoco.JaCoCo version: multiple, mentioned in Actual behaviour
Operating system: occurs on mac os 10.14 and windows 7
Tool integration: Maven/Ant/API/Other: maven
Expected behaviour
mvn test could run well
Actual behaviour
when running mvn test, error occurs like below:
The text was updated successfully, but these errors were encountered: