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

Junit5 support 2 #351

Closed VoglSebastian closed 3 years ago

VoglSebastian commented 3 years ago

JUnit5 support.

Only works if Properties.USE_SEPARATE_CLASSLOADER == false.

The Property to change the classloader is not supported, because of limitation of the JUnit5 extension API

schweikl commented 3 years ago

Only works if Properties.USE_SEPARATE_CLASSLOADER == false.

The Property to change the classloader is not supported, because of limitation of the JUnit5 extension API

Did you also document this fact in the source code? In case someone is trying to use JUnit5 with a different classloader and they are wondering why it doesn't work, the first go-to resource for them would probably be the source code to see what's up. So it would be nice to have it there.

VoglSebastian commented 3 years ago

Only works if Properties.USE_SEPARATE_CLASSLOADER == false. The Property to change the classloader is not supported, because of limitation of the JUnit5 extension API

Did you also document this fact in the source code? In case someone is trying to use JUnit5 with a different classloader and they are wondering why it doesn't work, the first go-to resource for them would probably be the source code to see what's up. So it would be nice to have it there.

EvoSuite warns the user before generating the tests that such test suites won't be runnable at the moment.

schweikl commented 3 years ago

EvoSuite warns the user before generating the tests that such test suites won't be runnable at the moment.

OK, I see. I think that's fine.