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
0
votes
1 answer

EvoSuite failing to connect to server

I followed the exact steps of the evosuite official tutorial (http://www.evosuite.org/documentation/tutorial-part-1/), and what I always get is this: IMAGE It always says that "failed to register client service", then java exceptions were thrown due…
Yiwei Lyu
  • 23
  • 3
0
votes
1 answer

How to pass EvoSuite parameters when using Maven?

When generating tests cases with Evosuite we can pass parameters several parameters, e.g.: $ java -jar evosuite-1.0.6.jar -listParameters ... sandbox boolean true Execute tests in a sandbox environment sandbox_mode …
ttk203
  • 347
  • 5
  • 10
0
votes
1 answer

How to see working evosuite plugin in eclipse

I installed plugin in eclipse(I see it in Window -> Preferences). Still I am not able to watch quicktime video (http://www.evosuite.org/documentation/eclipse-plugin/ (due to error -2000 in windows). But main issue: I could not find in eclipse…
SkorpEN
  • 2,491
  • 1
  • 22
  • 28
0
votes
1 answer

evosuite code coverage does not match with jacoco coverage

I am using evosuite 1.0.3 version. I am able to generate the test classes successfully and the project_info.xml shows 0.75 as code coverage which is nothing but 75% (0.75*100). But when I have integrated with Jacoco code coverage tool, I am not…
Venkat Jella
  • 121
  • 1
  • 3
0
votes
1 answer

How to write a failing test in this case?

I want to test some simple programs with evosuite in intellij and I want some test be failed . I was generated test with evosuite and test_cases are built. But when i test them with junit after, all of them are passed! How can I fail some test in…
0
votes
1 answer

Evosuite: failure in executing test cases

I follow the evosuite maven documentation to generate unit test cases for my project. Below is the command I've used: mvn -DmemoryInMB=2000 -Dcores=2 evosuite:generate evosuite:export test The tool takes around 1 hour to generate test cases for my…
Gelin Luo
  • 14,035
  • 27
  • 86
  • 139
0
votes
1 answer

Specify a coverage goal for EvoSuite

I would like to know whether I can specify a specific coverage goal (e.g., certain lines of a java file to be covered) before invoking EvoSuite. If it is possible, how should I put as command line? My goal is to obtain as many test cases as possible…
0
votes
1 answer

Running evosuite generated tests in Eclipse

I have generated the test cases using evosuite from the command line in Linux. I try to execute the tests in Eclipse. I have imported in my project the evosuite-standalone-runtime-0.2.0.jar. All the imported classes regarding evosuite are marked…
0
votes
2 answers

EvoSuite java support for Java 7?

Which versions of Java are supported by EvoSuite? I am running a maven build, following the instructions on the EvoSuite maven plugin page. However, the build fails with the following message: Failed to execute goal…
0
votes
1 answer

NullPointerException when using EvoSuite

I tried to use the new EvoSuite (0.1.1), however, it has failed with the exception below. I have tried with several classes, but the result is usually the same. Sometimes it is able to finish without an exception. I am using Ubuntu 14.04 64-bit with…
lajos.cseppento
  • 897
  • 8
  • 20
0
votes
3 answers

using evosuite from command line

When I try to use the EvoSuite testing tool from the command line, I get the following error: Fatal crash on main EvoSuite process. Class using seed 1428172877144. Configuration id : null java.lang.RunTimeExceptionConfiguration:Did not manage to…
0
votes
1 answer

using evosuite on windows

Has anyone used evosuite tesing tool from the command line on windows OS? I know that the eclipse plugin is developed only for mac OS, but I am not sure about the .jar file. Can it be executed on windows? Thank you!
0
votes
2 answers

how to plugin evosuite.jar in Eclipse

On the evosuite documentation website, they have a unhelpful video. The video shows that when you right click the text editor in eclipse, there is an evosuite icon after "replace with", but I haven't figured out how I can do that after I tried…
jaycee0905
  • 1
  • 1
  • 1
-1
votes
1 answer

implementation details of EvoSuite

I am using EvoSuite and everything is fine in generating the test suites. But I need to know how it works. I know it uses GAs, but I am interested in the implementation details. 1. Are ASTs (abstract syntax trees) used in order to implement the…
1 2 3
4