EvoSuite / evosuite

EvoSuite - automated generation of JUnit test suites for Java classes
http://www.evosuite.org
GNU Lesser General Public License v3.0
840 stars 342 forks source link

Merging generated test suites #128

Open mausotog opened 7 years ago

mausotog commented 7 years ago

Context

Please provide below a detailed introduction to the issue itself, and describe what you were doing when the issue happened. Or, what do you want to achieve? Hello, the following is not an issue but rather a clarification rather if there exists a feature in Evosuite: I want to know if it is possible to merge two or more generated test suites? This is very useful since, running Evosuite with different seeds provides different generated test suites which cover different cases than just running Evosuite with one seed for longer. Therefore, it would be really useful to be able to merge several test suites.

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. Create several different test suites with different seeds.
  2. Look for information regarding how to merge them.
  3. Realize there isn´t information in the wiki regarding merging two or more generated test suites.

EvoSuite Arguments

Please provide the whole EvoSuite commmand you executed (if relevant) I didn´t execute any command after creating the test suites. But something like this would be nice: $EVOSUITE -merge Chart-1f-evosuite-branch.1.tar.bz2 Chart-1f-evosuite-branch.2.tar.bz2 -output /some/file/

Current Result

Please describe here below the current result you got (if relevant) [if relevant, include a screenshot]

Expected result

Please describe here below what should be the expected behaviour (if relevant) To have a new test suite in the output file that consists of a single scaffolding file and main file (which is a gathering of the test cases in all the indicated test suites)

Additional info

Please add any information of interest here below

gofraser commented 6 years ago

This isn't currently possible, but I agree it would be a useful feature to have.

Merging two JUnit test suites in principle is trivial, but in this case it is not because (1) the scaffolding file would need to be updated, and (2) possibly only non-redundant tests should be in the merged test suite.

We'll keep it in mind, but would also be happy about pull requests :-)