Commit 2df593f6 authored by Kevin Bi's avatar Kevin Bi
Browse files

"Made corresponding updates to README.md after running through all the instructions

on a freshly downloaded repo"
parent 4dca8cae
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -72,16 +72,16 @@ the dir to be evaluated and the tacoco directory, see the script for more inform
	- cd tacoco/
	- ./run-jacoco /absolute/path/to/repo/triangle triangle /absolute/path/to/repo/tacoco

4. Compile the Tarantula classes and the test classes(triangle/tarantula classes).
4. Compile the Tarantula classes, depending on what linux operating system the user is running /lib/ may just be lib/ 
	- (in fault localization research base directory)
		- javac -cp /lib/\\\* tarantula/\*.java
		- javac -cp /lib/\\\* triangle/tarantula/\*.java
		

5. Run Tarantula's Main: Main requires two args(see the file for more details), the first is the absolute path to the cov-matrix.json file, the second is the name of the Test class, if the test program belongs to a package make sure to specify the package, ex: Triangle.TestSuite. An important note is that the TestSuite.class file must be in the same location as the TestSuite.java file. Otherwise the Main will not find the class file and will throw a NoClassDefFoundError   	
	- copy the .class file to the same dir as the .java file
		- cd triangle/target/../test-classes/../java
		- cp TestSuite.class triangle/src/test/../java 
	- java -cp .:lib/\\\* tarantula.Main /abs/path/to/triangle-mvn-compact-cov-matrix.json triangle.src.test.java.TestSuite
	- java -cp .:lib/\\\* tarantula.Main /abs/path/to/triangle-compact-cov-matrix.json triangle.src.test.java.TestSuite

6. Clean the tacoco dir: Run clean-tacoco in order to clean the dir so it can be reused, this means tacoco will have to be recompiled
	- ./clean-tacoco