pitest
pitest copied to clipboard
EvoSuite tests failing on PIT code coverage
Hello,
I've been trying to run PIT with tests generated by EvoSuite. However, some tests fail while PIT is running code coverage. These tests pass when I run them with JUnit and EvoSuite runtime test dependency (evosuite-standalone-runtime-1.0.6.jar) on the command line.
I know that Evosuite tests do not always work with PIT. I already tried the following approaches to try to solve this problem:
- Set the separateClassLoader parameter to false, when generating tests with EvoSuite;
- Tried many different versions of PIT;
- Compared the environment variables in the two test execution approaches (they are the same);
- Looked for tests dependencies (didn't find any);
None of these that I tried solved the issue. So I've been just removing these failing tests. However, I'm curious to know whether the problem is with PIT or with EvoSuite. @hcoles @gofraser.
Steps to reproduce the issue:
- Download and unzip this setup file;
- Go to the Math-2f folder;
- Run ./s on terminal.
@biabs1 take a look at https://github.com/STAMP-project/pitest-evosuite-plugin to be able to run EvoSuite generated tests with PIT. The versions are a bit old, but they should be updated in the near future.