Skip to content

kifetew/junitcontest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JUnit Tool Contest Infrastructure

The seventh edition of the tool contest, held at the SBST workshop co-located with ICSE'19, May 26-27 2019, Montreal, Canada. Here you will find the source code to the contest infrastructure and instructions on how to test your tool with the infrastructure before submitting it to the competition.

Important dates

  • The tool submission: February 15
  • Benchmark results communicated to authors: February 28
  • Authors submit camera ready paper: March 15

Try it via Docker

For easier access and use, this year we have dockerized the contest infrastructure. Here are the instructions for testing your tool via docker:

Prerequisites:

Install the docker software on your machine. Docker is available for Linux, Mac and Windows. For installation please follow the instructions for your operating system:

The command to run the docker image that contains the junit contest infrastructure is the following:

$ docker run -v /path/to/host/folder:/path/to/container/folder --name=junitcontest -it dockercontainervm/junitcontest:test
  • -v: it is needed to specify the tool folder in the host machine that needs to be attached to the docker container. For example:
$ docker run -v ~/Desktop/randoop/:/home/randoop --name=junitcontest -it dockercontainervm/junitcontest:test

The randoop folder under the Desktop folder in host machine is mapped to the randoop folder under the home folder in the docker container (guest). The randoop folder in the host machine is shared with the container, therefore every file written in this folder will be in both the host and the guest machines.

  • --name=junitcontest: it is the name of the container (junitcontest in this case). The name is optional, if skipped Docker assigns a random name automatically.

  • -it: it means that the user can access the docker container interactively, as if the user was in the command line of the guest system.

  • dockercontainervm/junitcontest:test: it is the name of the docker image. The first time the command is run, docker automatically downloads the image from a public repository. Once the image is in the system, docker simply uses it. The image is built upon the last version of Ubuntu (18.04 LTS).

Once you execute the docker run command, you are in the docker container. Move to the container folder where you mapped the tool, using the -v option (in the example is /home/randoop). The tool folder must meet the requirements specified in DETAILS . For an example of a correct tool folder please see: RANDOOP. (If you use the randoop tool from the github repository above, make sure to change the variable JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 to JAVA_HOME=/usr in the "runtool" script)

If the tool satisfies the requirements, from the tool folder (/home/randoop), run:

$ contest_generate_tests.sh tool-name runs-number runs-start-from time-budget-seconds

For example:

$ contest_generate_tests.sh randoop 1 1 10

This script runs one excution of the test generation tool randoop for 10 seconds.

As the generation goes on, you should see files written in the shared folder in the host machine (in the example ~/Desktop/randoop).

To compute the metrics (i.e., coverage and mutation score) for the test cases generated by the command in the previous example, run the following command, from the same directory:

$ contest_compute_metrics.sh results_randoop_10 > stat_log.txt 2> error_log.txt 

Note that the folder results_randoop_10 is automatically generated by the contest_generate_tests.sh script and contains, among other things, the test cases generated.

Once you are done, you can exit from the container by running:

$ exit

The command brings you back to the host machine.

Optionally you can remove the container by running:

$ docker rm <container-name>"

For the example, run:

$ docker rm junitcontest

Other docker commands:

$ docker ps: shows all running containers
$ docker ps -a: shows all containers (in every status)

Try it via manual installation

You can also install the contest infrastructure directly on your machine and test your tool. Below you find basic information and detailed instructions.

Target: Linux (Ubuntu x64)

Folder contents:

  • bin: Contest infrastructure binaries
  • src: Contest infrastructure source code
  • tools: Contest tools

Requirements:

Java8 (JDK):

$ apt-get install default-jdk

Installation instructions:

For detailed instructions see DETAILS

About the contest

This is the source code for the contest infrastructure for junit testing tools. The contest was initiated during the FITTEST European project no. 257574 (2010-2013) and hence partly funded by the FP7 programme on ICT Software & Service Architectures and Infrastructures.

The FITTEST project, which developed an integrated environment for the automated and continuous testing of Future Internet Applications, was coordinated by:

Tanja E. J. Vos (tvos@pros.upv.es) Software Quality & Testing Research Center on Software Production Methods (PROS) Department of Information Systems and Computation (DSIC) Universitat Politècnica de València (UPV) Camino de Vera s/n, 46022 Valencia (Spain)

The contest infrastructure has been used in testing contests during yearly events from 2013 till 2017 (check the Acknowledgements and Publications).

The latest edition was in February 2018: the 6th round of the junit contest series, which was celebrated at the 11th International SBST workshop [1] held in conjunction with the ICSE conference [2]:

  • [1] SBST2018 - 11th International Workshop on Search-Based Software Testing, May 28-29 2018
    • URL: http://software.imdea.org/sbst18/
    • Contest Committee
      • Urko Rueda Molina (Chair), Universitat Politècnica de València
      • Fitsum Kifetew (co-Chair), Fondazione Bruno Kessler
      • Annibale Panichella, University of Luxembourg and Delft University of Technology
  • [2] ICSE2018 - 40th International Conference on Software Engineering, May 27 - 3 June 2018, Gothenburg, Sweden https://www.icse2018.org/

Publications

For publications from previous editions see PUBLICATIONS.

About

junit tools contest infrastructure

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 83.9%
  • Shell 12.0%
  • R 3.3%
  • Perl 0.8%