JUnit2JExample

JUnit2JExample is a prototype to automatically convert JUnit 4 test classes to JExample test classes.

By analyzing the coverage sets of the test methods we can automatically recover implicit dependencies between test methods. The recovered dependencies can then be used to automatically migrate the original JUnit test classes into JExample test classes that declare explicit dependencies.

The migration from JUnit 4 to JExample happens in two steps:

Quick Start

JUnit2JExample

In the following you find a short tutorial on how to install and use JUnit2JExample to migrate JUnit 4 tests to JExample tests on the command line and in eclipse.

Download the JUnit2JExample jar from /download/jexample.

Arguments

Usage on the Command line

java -javaagent:agent.jar=<package> -cp path/to/junit2jexample.jar:your_class_path\
ch.unibe.junit2jexample.main.JUnit2JExample --testClass <testClass> --sources <sources>\ 
--output <output> [-r]

Usage in Eclipse

JUnit3To4

In the following you find a short tutorial on how to install and use textsc{JUnit3To4} to migrate junit 3 tests to junit 4 tests on the command line and in eclipse.

Download the textsc{JUnit3To4} jar from url{/download/jexample}.

Arguments:

Usage on the Command line

java -cp path/to/junit3to4.jar:your_class_path ch.unibe.junit3to4.Converter\
--input <input> --output <output> [-r]

Usage in Eclipse

Publications

JExample

People