Skip to content
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

WARN TestMethodFilter - NoClassDefFoundError but verbose mode are correct #212

Open
ericma1999 opened this issue Nov 25, 2022 · 1 comment

Comments

@ericma1999
Copy link

ericma1999 commented Nov 25, 2022

Hi, I am trying to run flacoco to generate the fault localisation for apache-camel

When running in verbose mode it gives me the following error. The weird thing is that on smaller projects everything seems to work. The project has been built and tests ran. Then used maven to genearte the classpath.info and pass it as per tutorial to flacoco.

Also the timeout has been set to the largest integer and the following results was received.

image

Screenshot 2022-11-25 at 7 35 15 AM

image

@andre15silva
Copy link
Member

Hi @ericma1999 ,

Sorry for the delay.

I tried to reproduce this by running flacoco on camel-core (I assumed, by the path, that this is the module you are trying to execute. Let me know if I made a wrong assumption).

First, my execution successfully terminated, so I don't know why you are getting that NullPointerException.
Maybe you could provide me with more details to correctly reproduce that error such as the commitId you are trying to execute, and the complete command.

Second, the WARN TestMethodFilter - NoClassDefFoundError is related to the test detection phase. This warning is reported when our test detection mechanism, which is based on a classloader, tries to load a class which is not provided in the classpath. This may indicate an error in the classpath definition, for instance, not allowing flacoco to access the classes it is trying to load.

Lastly, I did not understand what you meant by "but verbose mode are correct". Could you further elaborate on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants