Commit bc3ccb4a authored by Kevin Bi's avatar Kevin Bi
Browse files

"Added documentaion to scripts, updated the README.md"

parent 9fa539fa
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -18,9 +18,11 @@ Tarantula
Tarantula is the second fault localization tool in this repo. For this project tacoco is used to obtain a Json format cov matrix of the program
and then calculate suspiciousness of lines using TarantulaMain.java.

The github projects for tacoco and primitive hamcrest can be found at https://github.com/spideruci/tacoco & https://github.com/inf295uci-2015/primitive-hamcrest respectively

TarantulaMain requires several arguments to be run:
	(1) The cov-matrix in Json format
	(2) The class file of the Test program
	- (1) The cov-matrix in Json format
	- (2) The class file of the Test program


Getting started
@@ -59,7 +61,7 @@ Evaluating bugs using Tarantula
1. Run Tacoco: The run-tacoco script runs tacoco and creates cp.txt files in both the system-under-test dir and the tacoco dir 
	- ./run-tacoco /absoluteolute/path/to/repo/triangle /absolute/path/to/repo/tacoco

2. Run Jacoco.exec Analyzer: The run-jacoco script creates the jacoco.exec file and the .json files in the tacoco dir, the script will have to be run inside the tacoco dir so you can cp it into the tacoco directory
2. Run Jacoco.exec Analyzer: The run-jacoco script creates the jacoco.exec file and the .json files in the tacoco dir, the script will have to be run inside the tacoco dir so you can copy it into the tacoco directory
	- cp -i run-jacoco ../tacoco
	- cd /tacoco/
	- ./run-jacoco /absolute/path/to/repo/triangle triangle /absolute/path/to/repo/tacoco
+1 −1
Original line number Diff line number Diff line
#!/bin/bash
# This script removes the files that run-tacoco and clean-tacoco create

# re-compile the tacoco dir after cleaning; mvn compile
cd ../tacoco
rm cp.txt jacoco.exec *.json
rm -r target
+1 −0
Original line number Diff line number Diff line
#!/bin/bash

# This script creates the compact.json file and the compact-cov-matrix.json file, execute this script after run-tacoco
# to be run from within the tacoco dir
# The command line arg descriptions are as follows: 
# NOTE do not include an ending backslash for any of the command line arg
# $1 command line arg, absolute path of system-under-test's root