Open chenhengjie123 opened 5 years ago
It seems jacoco inserts a field $jacocoData
into Moco code which is supposed to be ignored by Jacoco. Could you please try to find some way to ignore it?
It seems jacoco inserts a field
$jacocoData
into Moco code which is supposed to be ignored by Jacoco. Could you please try to find some way to ignore it?
Do you know where I should try to modify so this error could be ignored? Since the stack trace just tell me the line of @Test throws this error, but didn't tell the detail in MocoJunitRunner or jacoco, it's not easy for me to find where to modify.
Also I created an issue for jacoco: https://github.com/jacoco/jacoco/issues/816 .
Jacoco has located the root cause and give a workaround method: https://github.com/jacoco/jacoco/issues/816
It seems moco need to change codes related to reflection to resolve this issue. @dreamhead
test case code:
error when running with
mvn test
:configuration in pom.xml:
I have test with several versions, here is the result:
Almost the same as this issue: ERROR : Maven test fails to run moco server when using jacoco maven plugin.. Since it is closed, so I created this new issue instead.