I tried to test a simple eclipse project with pitest+piclipse. Unfortunatly pitest doesn't recognize the bundle dependencies when running a test, so i get numerous NoClassDefFoundError's. Did anybody know how to run pitest with eclipse bundles? Maybe it works with Maven-Tycho + Surefire?
Just another question before i start trying to "pitest" a eclipse bundle. Does pitest support multiple classloader? If not i guess it doesn't work at all, since every bundle has ist own classloader.
No test library found on classpath. PIT requires either JUnit 4 (but can run JUnit 3 tests) or TestNG
I'm not an expert with PiTest but according to the web site, PiTest does have its own main class which is in contrast with OSGI as OSGI containers are also main entry points for the JVM.
Jacoco solved the issue by being a Java agent so its is compatible with any runner: Maven surefire, TYcho surefire, JVM,...
If you can put together a minimal project that demonstrates the issue I'll dig into it when I have chance.
You can clone the tycho demo repository and try to build project "itp01" -> git://git.eclipse.org/gitroot/tycho/org.eclipse.tycho-demo.gitThe Project contains a simple application bundle an a test bundle, you only have to add the pitest plugin to the master pom.I was able to reproduce the problem with this configuration.
Ok I'll take a look as soon as I get chance.
Hi, I'm having the same problem with OSGI and Tycho. is there any news on this topic? I'm using PIT for my masters thesis and making this work would be a huge help for me. if I can help in any way please let me know.
do you think it's possible to write an agent to do the job pit currently does on its own? I mean, what I need is that tycho-surefire-plugin gathers the tests and pit run those tests on the target mutated code. if this is possible, could you give me some pointers where to start? I have one month to figure this problem out, and I'd rather implement this feature in pitest rather than making another tool from scratch.
No test library found on classpath. PIT requires either JUnit 4 (but can run JUnit 3 tests) or TestNG
Are there any updates on this issue? I tried running PIT against the tycho ipt01 example today but still ran into the same error message.
About the tycho convention: You can come across both test layouts simultaneously. Tests located in the same project/OSGi-Bundle or in a related fragment usually target the bundle alone (and often can be run as "normal" JUnit-Test). Tests in a separate project usually target more than one bundle at once (e.g. integration tests) and have to be run in an OSGi context in order to be able to resolve their dependencies.
--
You received this message because you are subscribed to a topic in the Google Groups "PIT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pitusers/IH21Q4jJaco/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.