EvoSuite / evosuite

EvoSuite - automated generation of JUnit test suites for Java classes
http://www.evosuite.org
GNU Lesser General Public License v3.0
832 stars 341 forks source link

The class belongs to one of the packages EvoSuite cannot currently handle #357

Closed m-zakeri closed 3 years ago

m-zakeri commented 3 years ago

Context

EvoSuite cannot generate tests for most of the classes in some Java projects, for instance, the Apache Xerces

Steps to Reproduce

For all classes in the Apache xerces2-j-trunk project, EvoSuite fails to generate tests.

EvoSuite Arguments

java -jar evosuite.jar -projectCP ./build/classes -class org.apache.xerces.util.URI

Current Result

gofraser commented 3 years ago

EvoSuite has some issues with Xerces that we don't fully understand, hence this is deactivated. I have now enabled testing of Xerces classes in 9c7b31994bf65079272fa3e5d80cacd8eed13a66; it doesn't work well, and there are some individual classes where EvoSuite will just crash. But for many others it will generate tests.