Open lyhisproving opened 2 years ago
same problem any solutions?
use EvoSuite 1.0.6
@lyhisproving, I would try to run EvoSuite on a few classes (one at a time) before running EvoSuite on the entire project. It might be that some dependency is missing or EvoSuite doesn't even support that particular project under test.
You need to introduce the correct dependencies and pay attention to the version
Context
I can't create test cases for my classes. The results show a successful build, but no test cases are generated. What's going on here?
Steps to Reproduce
Please break down here below all the needed steps to reproduce the issue. [If possible, please upload an example of the project you are generating tests for.]
1. 2. 3.
EvoSuite Arguments
mvn compile evosuite:generate -Dcores=4 -DmemoryInMB=8000 -DtimeInMinutesPerClass=5
Current Result
--- evosuite-maven-plugin:1.0.5:generate (default-cli) @ MutationTest --- [INFO] Going to generate tests with EvoSuite [INFO] Total memory: 8000mb [INFO] Time per class: 5 minutes [INFO] Number of used cores: 4 [INFO] Target: D:\Documents\Projects\MutationTest\target\classes [INFO] Basedir: D:\Documents\Projects\MutationTest [INFO] Started spawn process manager on port 62983 [INFO] SLF4J: Class path contains multiple SLF4J bindings. [INFO] SLF4J: Found binding in [jar:file:/C:/Users/62510/.m2/repository/org/evosuite/evosuite-master/1.0.5/evosuite-master-1.0.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] [INFO] SLF4J: Found binding in [jar:file:/C:/Users/62510/.m2/repository/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] [INFO] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. [INFO] SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] [INFO] EvoSuite 1.0.5 [INFO] Registered remote process from /127.0.0.1:62987 [INFO] Going to execute 3 jobs [INFO] Estimated completion time: 4 minutes, by 2022-04-26T23:22:36.970 [INFO] Going to start job for: Main.TestMethods. Expected to end in 240 seconds, by 2022-04-26T23:22:37.582 [INFO] Going to start job for: Main.Main. Expected to end in 240 seconds, by 2022-04-26T23:22:37.582 [INFO] Going to start job for: Main.Mine. Expected to end in 240 seconds, by 2022-04-26T23:22:37.582 [INFO] [MASTER] 23:23:36.958 [main] ERROR JobExecutor - The jobs did not finish in time [INFO] Updating database to Main.TestMethods [INFO] Updating database to Main.Main [INFO] Updating database to Main.Mine [INFO] === CTG run results === [INFO] Removed test suites: 0 [INFO] New test suites: 0 [INFO] Missing classes: [INFO] Main.TestMethods [INFO] Main.Main [INFO] Main.Mine [INFO] WARN: failed to generate tests for 3 classes out of 3 [INFO] Stopping spawn process manager [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS
Expected result
Please describe here below what should be the expected behaviour (if relevant)
Additional info
Please add any information of interest here below