Open fc51111 opened 2 years ago
Hi, I also have this issue, running everything from maven (from a terminal) seems to end without any issue. But as soon as I try any test withing IntelliJ (after importing the project as a maven project).
mark
This is because the default algorithm now is DynaMOSA. But these old system tests use the WholeSuiteGeneration strategy, which doesn't support DynaMOSA. So it can be fixed in tests by adding the parameter "-Dalgorithm=MONOTONIC_GA".
This is because the default algorithm now is DynaMOSA. But these old system tests use the WholeSuiteGeneration strategy, which doesn't support DynaMOSA. So it can be fixed in tests by adding the parameter "-Dalgorithm=MONOTONIC_GA".
Then this is an issue about test configuration that must be updated right?
Any new update?
Any new update?
I tried with @zzctmac suggestion and it works. But this feels like a workaround that shouldn't be necessary.
@saiema It works, but in this case, the EvoSuite strategy will be used not the MOSuiteStrategy.
Context
I Tried to run the NullStringSystemTest system test (as described in the part 4 of the EvoSuite tutorial), but it failed (see the error in the "Current Result" section). Meanwhile, I found several other tests with the same problem, and they were all system tests.
Steps to Reproduce
Run the NullStringSystemTest (./master/src/test/java/org/evosuite/basic/NullStringSystemTest.java) system test using EvoSuite v 1.2.0.
Current Result
Expected result
All tests should have passed.
Additional info
Adding the following line of code to these tests appears to fix this problem (though there are still warning messages related to “an illegal reflective access”):
Properties.ALGORITHM = Properties.Algorithm.MONOTONIC_GA;
I am currently using EvoSuite v 1.2.0. on Windows 10.
jdk 1.8.0_212