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
1
vote
0 answers

maven goal using default maven repo and not the configured one

I am trying to integrate evosuite in my maven project using instructions from here and here. I can build the project (clean install) without any issue. I can execute evosuite:help or evosuite:prepare goal without any issue. However I am having issue…
dev
  • 11
  • 1
1
vote
1 answer

ERROR EvoSuite - Fatal crash on main EvoSuite process

I'm getting the following error when I try to run EvoSuite. I even provided the complete path to jdk but still the error is not resolved. Please help me out. C:\Users\XYZ\Documents\Tutorial_Stack>java -jar evosuite-1.0.6.jar…
1
vote
0 answers

Evosuite (maven) Unable to generate test / edit: tried eclipse plugin

I was testing evosuite (automation tool to generate junit test) using Maven plugin in Eclipse Luna, using JDK 1.8 I have followed the tutorial given in evosuite tutorial: http://www.evosuite.org/documentation/tutorial-part-2/ Able to generate test…
WesLee
  • 11
  • 4
1
vote
0 answers

evosuite: ERROR MeasureCoverage - Not possible to access to clients

I am currently trying to use EvoSuite to measure code coverage of existing test code. Everything works fine at first. But it seems not work anymore. I always got the error message: * Starting client [MASTER] 21:36:10.605 [main] ERROR…
qzhu
  • 11
  • 3
1
vote
2 answers

Error in generating test cases when using EvoSuite Eclipse Plugin

When using EvoSuite Eclipse Plugin to generate a test case for a class which extends HttpServlet in a Dynamic Web Project, I am getting the following error. Those Chinese characters meanings "Windows can not find this file …
Hugh
  • 21
  • 6
1
vote
1 answer

evosuite _ESTest.java results reported in sonar/jacoco

We have a single evosuite generated unittest .java file. We have other hand-crafted unittest .java files. We execute a build on our server and all unittests (evosuite and hand-crafted) are executed. We then go into our sonar dashboard and…
Jim Athrs
  • 61
  • 1
  • 3
1
vote
1 answer

Using EvoSuite with JMockit for code coverage

Have created a unit test using EvoSuite and want to use maven build to do code coverage analysis on this unit test. When I run maven build I get ... JMockit Coverage got reloaded through custom class loader…
1
vote
1 answer

How to run evosuite with(out?) jdk

I get this error when i run EvoSuite java.lang.RuntimeException: No Java compiler is available. Are you running with the JDK? A bit confusing, is it asking me to run with the JDK, or is it stating that i shouldn't? When i run java -version it…
Viktor Mellgren
  • 4,318
  • 3
  • 42
  • 75
1
vote
1 answer

How to create evosuite tests which use relative paths for file generation

I generated a test suite with evosuite for a project. Some of the tests relate to reading/writing files and use absolute paths to access them, which results in tests only succeeding if the project is located at the exact same location in the local…
1
vote
1 answer

using wildcards for projectCP in evosuite test case generation

I use evosuite 1.0.1 for automated test case generation for several open source projects. I use java 1.8 on a unix platform (ubuntu 14.04). Is there a way to use wildcards for dependencies in the -projectCP tag? Some of my projects depend on a huge…
1
vote
1 answer

Error while generating tstsuite from commandline

While generating test cases using command line option I am getting the following error. EvoSuite Going to generate test cases for class: testgeneration.Multiplication [MASTER] 14:03:51.716 [main] ERROR TestGeneration - Not possible to access to…
1
vote
1 answer

How generate Tests with evosuite on Ubuntu

I tried to generate tests using evosuite standalone jar from commandline. My project directory have source in src/czytacz and there is antlr-4.3-complete.jar in project directory This is what I have do: Copy evosuite jar to project directory. Use…
Kristof
  • 41
  • 4
0
votes
0 answers

How can i get coverage for method in csv file using evosuite?

I am going to test methods in java project by evosuite. The purpose is getting coverage such as branch coverage, mutation coverage, statement coverage for methods in class. I make an effort consider source code of evosuite.
0
votes
0 answers

Could not find artifact com.sun:tools:jar:1.0.0 at specified path C:\Program Files\Java\jdk-17.0.5/../lib/tools.jar

I'm trying to use evosuit maven plugin(1.0.6) to generate unit tests for my spring boot application. I have followed the official documentation at https://www.evosuite.org/documentation/maven-plugin/. Searching on the web I went to discover that…
0
votes
0 answers

How to run evosuite-generated tests if scaffolding file contains specific configurations for each machine?

I'm working with evosuite 1.0.6 to generate tests for my project, and each test class comes with a scaffolding file that contains a setSystemProperties method with machine-specific properties. This makes it difficult to run the tests on different…
Juvemanu
  • 1
  • 2