Skip to content

"Scalable Approaches for Test Suite Reduction" online material.

License

Notifications You must be signed in to change notification settings

ICSE19-FAST-R/FAST-R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalable Approaches for Test Suite Reduction

DOI

This repository is a companion page for the following publication:

Emilio Cruciani, Breno Miranda, Roberto Verdecchia, and Antonia Bertolino. Scalable Approaches for Test Suite Reduction. In Proceedings of ICSE’19: 41st International Conference on Software Engineering, Montreal, Canada, 25-31 May, 2019 (ICSE’19), 11 pages.

It contains all the material required for replicating our experiments, including: the implementation of the algorithms, the input data, and supplementary tools. Some additional results, not included in the paper for the sake of space, are also provided.

Pseudocode

The pseudocode of all algorithms are available here (some of them were not reported in the paper for lack of space).

Experiment Results and Data

The results of our experiments as well as the data we used for our statistical analysis are available here.

Experiment Replication

In order to replicate the experiment follow these steps:

Getting started

  1. Clone the repository

    • git clone https://github.com/ICSE19-FAST-R/FAST-R
  2. If you do not have python3 installed you can get the appropriate version for your OS here.

  3. Install the additional python packages required:

    • pip3 install -r requirements.txt

Budget Scenario

  1. Execute the experimentBudget.py script

    • python3 py/experimentBudget.py <coverageType> <program> <version> <repetitions>

    The possible values for <coverageType> are: function, line, branch.

    The possible values for <program> <version> are: flex v3, grep v3, gzip v1, make v1, sed v6, chart v0, closure v0, lang v0, math v0, time v0.

    The number of times the experiment should be repeated is defined by <repetitions>.

  2. The results are printed on screen and stored inside folder outputBudget-<coverageType>/

Adequate Scenario

  1. Execute the experimentAdequate.py script

    • python3 py/experimentAdequate.py <coverageType> <program> <version> <repetitions>

    The possible values for <coverageType> are: function, line, branch.

    The possible values for <program> <version> are: flex v3, grep v3, gzip v1, make v1, sed v6, chart v0, closure v0, lang v0, math v0, time v0.

    The number of times the experiment should be repeated is defined by <repetitions>.

  2. The results are printed on screen and stored inside folder outputAdequate-<coverageType>/

Large Scale Scenario

  1. Create scalability dataset

    • cat input/scalability/scalability-bbox.txt.gz_* > input/scalability/scalability-bbox.txt.gz && gunzip input/scalability/scalability-bbox.txt.gz
  2. Execute the experimentLargeScale.py script

    • python3 py/experimentLargeScale.py <algorithm> <repetitions>

    The possible values for <algorithm> are: FAST++, FAST-CS, FAST-pw, FAST-all.

    The number of times the experiment should be repeated is defined by <repetitions>.

  3. The results are printed on screen and stored inside folder outputLargeScale/

Directory Structure

This is the root directory of the repository. The directory is structured as follows:

FAST-R
 .
 |
 |--- input/         Input of the algorithms, i.e. fault matrix, coverage information, and BB representation of subjects.
 |
 |--- pseudocode/    Pseudocode of the algorithms.
 |
 |--- py/            Implementation of the algorithms and scripts to execute the experiments.
 |
 |--- results/       Overview of the experiment results and related raw data.

About

"Scalable Approaches for Test Suite Reduction" online material.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages