University of Puerto Rico at Río Piedras
Question
Asked 6 January 2015
Does anyone know of a good JUnit test generation tool?
I'm looking for a tool to generate unit tests (pref. JUnit) for a given Java code base.
It is meant to be used by students in a course on s/w reverse engineering and reengineering. The student will explore various tools (e.g., metrics, style).
In the past, I tried AgitarOne to generate tests, but those tests require a specific plugin just to run them and do not seem to work with standalone tools outside its suite (e.g., EclEmma). Besides, AgitarOne is rather heavy and its usage policy of for academia is rather restrictive.
Does anyone know of some tool that does not have such problems?
All Answers (7)
Try http://www.scalacheck.org/ its a port of https://www.researchgate.net/publication/254051198_Specification_based_testing_with_QuickCheck for Scala/Java.
1 Recommendation
Assystem Germany GmbH
EvoSuite, http://dl.acm.org/citation.cfm?id=2025179 website http://www.evosuite.org/ (currently down?)
You might also be interested in other participants of the Java Unit Testing Competition (2 rounds already done, 3rd round announced): http://sbstcontest.dsic.upv.es/
2 Recommendations
Massey University
I found CodePro Analytix to be practical...
This is a complete Eclipse code analysis tool for Java programs. The tool will help you to generate unit tests (JUnits) as well as measuring Code and Test Coverage levels.
Indian Institute of Information Technology Design and Manufacturing Jabalpur
You can use CodePro Analytix. It is open source. Besides generating Junit test cases, it also have number of features. Try it once.
Similar questions and discussions
Related Publications
The rise of agile methodologies and open source software has led to the creation of several new tools designed to help software engineers construct better applications. One particular emphasis of these new tools is the creation of unit tests. This paper describes a qualitative assessment of the reverse engineering capabilities of three unit testing...
Viele Architekturreviews sind mit dem Problem konfrontiert, dass die zu betrachtende Architektur weder modelliert noch dokumentiert
oder auch nur ausreichend erforscht ist. Eine solche Situation ist im Rahmen der Softwareentwicklung nicht unbekannt, speziell
bei Legacysoftwaresystemen tritt dies häufiger auf. Die in solchen Fällen genutzten Methode...
The key to applying computer-aided software engineering to the maintenance and enhancement of existing systems lies in applying reverse-engineering approaches. However, there is considerable confusion over the terminology used in both technical and marketplace discussions. The authors define and relate six terms: forward engineering, reverse engine...