Questions tagged [evosuite]

EvoSuite is a Java tool used to automatically generate JUnit test cases.

EvoSuite is a tool that automatically generates test cases with assertions for classes written in Java code. To achieve this, EvoSuite applies a hybrid approach that generates and optimizes whole test suites towards satisfying a coverage criterion. For the produced test suites, EvoSuite suggests possible oracles by adding small and effective sets of assertions that concisely summarize the current behavior; these assertions allow the developer to detect deviations from expected behavior, and to capture the current behavior in order to protect against future defects breaking this behaviour.

The tool is available as a maven, Eclipse, or IntelliJ plugin, from the EvoSuite web site

More information:

  • Gordon Fraser and Andrea Arcuri. EvoSuite: automatic test suite generation for object-oriented software. Proceedings of the 19th ACM SIGSOFT symposium and the 13th European conference on Foundations of software engineering. ACM, 2011. (pdf).
60 questions
4
votes
0 answers

How to specify Evosuite dependencies

When you want to generate tests for a java project using Evosuite, You have to specify: class under test The classpath where you can find the bytecode of the class under test and its dependencies So I give the following on the command…
Gakuo
  • 845
  • 6
  • 26
4
votes
1 answer

EvoSuit generate test for specific class with maven

Is it possible to configure in maven plugin,for which classes (like include/exclude by name pattern) JUNIT tests should be generated? As i don't need tests for every class. I managed to do it with command line but I need to do it in maven.
yuris
  • 1,109
  • 4
  • 19
  • 33
3
votes
1 answer

using EvoSuite plugin for eclipse on Windows 7 OS

I'm try to use the EvoSuite plugin for eclipse (keplero) on Windows 7 OS. For testing this plugin i download the file ATM.java from the site http://www.evosuite.org/study/ . Now when i do right click on the target class -> evoSuite -> Generate…
qotsa
  • 31
  • 4
2
votes
0 answers

Evosuite:ERROR TestSuiteGenerator Full stack: java.lang.IllegalArgumentException: null

I have a problem about Evosuite generate. When I used IntelliJ Maven integration to generate test sets, the following error occurred, and all test sets failed to generate. client_error_log: [MASTER] 08:49:40.968 [pool-2-thread-1] ERROR…
刘wh
  • 21
  • 1
2
votes
1 answer

How can failing test cases be generated via EvoSuite?

When I was learning to use Evosuite, I wrote some wrong methods. In one of them, for example, a method of class A directly calls an abstract method of interface B, and EvoSuite generated a mock for B to avoid the case failing: import…
KIKI
  • 23
  • 3
2
votes
1 answer

Generate tests only on new / modified code

Maybe it's obvious considering how maven works, but I'm kinda new to this. I am currently using evosuite via maven to generate tests, my question is : Is it possible to generate tests only for new/modified code instead of generating the whole suit…
Sanea
  • 129
  • 3
2
votes
1 answer

How to Use "EVO suite" for Android unit tests generation.

I have an Android project, For which I need to generate Unit tests. So Instead of writing them, I found that we can automatically generate unit tests by EVOsuite. Info provided in the official documentation of EVOSuite is not sufficient, and plugin…
2
votes
1 answer

EvoSuite - Parameters For Getting Most Code Coverage

I'm generating unit tests with EvoSuite and would like to get as close to 100% code coverage from the resulting unit tests as possible. What are the best command line options/parameters to set to accomplish this?
2
votes
1 answer

Evosuite 1.0.3 Class 'TestClass_ESTest.class' should be in target project, but could not be found

I have been working on a web application that generates tests, given uploaded Java files and also tests uploaded code against said generated tests. I have been using Evosuite to generate the tests without a problem. However I have just updated to…
Steven N
  • 21
  • 2
2
votes
1 answer

EvoSuite test generation stucks when using maven plugin

I Have followed steps given in the site to configure maven plugin. When I give "mvn evosuite:generate", it hangs with below detail in console. [INFO] Going to start job for: com.emirates.gws.service.grouprequest.GroupRequestServiceImpl. Following…
2
votes
1 answer

Running Evosuite with DSE

I am using Evosuite in Linux from the command line. According to the articles about Evosuite, there is an option to combine Evosuite with Dynamic Symbolic Execution (DSE)! Haw can this be set from the command line? Is there any parameter to…
2
votes
1 answer

Evosuite test generation from command line on linux

I am using Evosuite from the command line in Linux and I get an error. the path for the project is: /home/ina/workspace/ina the target class files are located in: /home/ina/workspace/ina/bin/paketa1 I use the command: java -jar evosuite-0.2.0.jar…
2
votes
1 answer

How to integrate EvoSuite test case generation tool

I have read the documentation in the following link Documentation | EvoSuite. But, it's still not clear for me how to use EvoSuite. And when I write the java -jar evosuite.jar -help command, I get the following error Could not find the main…
RMDev
  • 163
  • 1
  • 11
1
vote
0 answers

evosuite doesn't generate tests with a different GA

for university purposes i'm trying to extend evosuite. before i'm tryng to run it first with a different GA, without success. I'm using evosuite 1.2.1 on ubuntu 12.0.4 and after compile it with maven, following the tutorial on the website, i try to…
1
vote
1 answer

How to only build the client module of evosuite

I'm trying to run the tests of Evosuite's client module, but when I try to compile the module alone maven is not able to find a dependency (evosuite-runtime) which is on the same repository and is correctly build when I compile the complete…
1
2 3 4