Skip to content
/ VTR Public

Validation and Patch Generation of Test Cases Based on Software Release

Notifications You must be signed in to change notification settings

mzw/VTR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VTR Build Status

Written by Yuta Maezawa and greatest contributors

Configuration

Provide your local configurations at src/main/resources/config.properties .

path_to_output_dir = outputs
path_to_subjects_dir = subjects
maven_home = /usr/local/apache-maven-3.3.9
maven_output = false

Clone

Make outputs and subjects directories and clone your project under the subjects directory.

$ mkdir outputs
$ mkdir subjects
$ cd subjects
$ git clone https://github.com/mzw/vtr-example

Compile

$ mvn compile test-compile dependency:copy-dependencies

Run

1. In-Advance Phase

1-1. Make Dictionary

$ sh/run dict vtr-example

1-2. Measure Coverage of Modified Test Cases

$ sh/run cov vtr-example

1-3. Detect Test-Case Modifications for Previously-Released Source Code

$ sh/run detect vtr-example

2. In-Review Phase

2-1. Classify Detected Test-Case Modifications by GumTreeDiff

$ sh/run cluster gumtreediff

2-2. Classify Detected Test-Case Modifications by Testedness

$ sh/run cluster testedness
(Optional) Adding Manual Defined Modification Patterns
$ sh/run cluster add-patterns-for-testedness

2-3. Review VTR In-Advance Results

$ sh/run visualize html

3. In-Use Phase

3-1. Validate Test Cases to Be Modified

$ sh/run validate vtr-example

3-2. Generate Patches to Modify Test Cases Detected

$ sh/run gen vtr-example

3-3. Evaluate Improvement of Modified Test Cases

$ sh/run repair vtr-example

Enjoy!

License

Apache 2.0 License


(C) Yuta Maezawa 2017

About

Validation and Patch Generation of Test Cases Based on Software Release

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published