Commit 551acc0c authored by Kevin Bi's avatar Kevin Bi
Browse files

"Added the junit-4.1.1.jar, and made changes to the triangle project to make...

"Added the junit-4.1.1.jar, and made changes to the triangle project to make it more simple in terms of structure and added a sub directory to be used with the TarantulaCalculator, the changes will be further explained in the next README.md push"
parent aa64a846
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -76,7 +76,8 @@ the dir to be evaluated and the tacoco directory, see the script for more inform
4. Run TarantulaMain: TarantulaMain 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.
	- java TarantulaMain /absolute/path/to/repo/tacoco/triange-compact-cov-matrix.json TestSuite

	- TarantulaMain can also be run in eclipse simply, copy all the code tarantula dir into a new java project and use the Run Configurations option to allow for command line arguments, another option is to 	     hard code the files and classes, it is also easier (in my opinion) to set the build path since Runner and covMatrixReader both require imports. The needed jars, (junit and json-simple) are found in the 		lib repo or eclipse can easily add them. 
	- TarantulaMain can also be run in eclipse simply, copy all the code tarantula dir into a new java project and use the Run Configurations option to allow for command line arguments, another option is to
hard code the files and classes, it is also easier (in my opinion) to set the build path since Runner and covMatrixReader both require imports. The needed jars, (junit and json-simple) are found in thelib repo or eclipse can easily add them. 

5. 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

lib/junit-4.11.jar

0 → 100644
+282 KiB

File added.

No diff preview for this file type.

triangle/cp.txt

0 → 100644
+1 −0
Original line number Diff line number Diff line
/homes/iws/kevinb22/.m2/repository/junit/junit/4.11/junit-4.11.jar:/homes/iws/kevinb22/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/homes/iws/kevinb22/.m2/repository/org/spideruci/hamcrest/primitive-hamcrest/0.0.1-SNAPSHOT/primitive-hamcrest-0.0.1-SNAPSHOT.jar:/homes/iws/kevinb22/.m2/repository/org/hamcrest/java-hamcrest/2.0.0.0/java-hamcrest-2.0.0.0.jar
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.defects4j.fl</groupId>
  <artifactId>com.defects4j.fl</artifactId>
  <groupId>com.triangle</groupId>
  <artifactId>triangle</artifactId>
  <packaging>jar</packaging>
  <version>0.0.1</version>
  <name>triangle</name>
+4 −4
Original line number Diff line number Diff line
package com.defects4j.fl;
package triangle;

public class Triangle {
	
	public static enum Type {
	public enum Type {
		INVALID, SCALENE, EQUILATERAL, ISOSCELES
	};
	
@@ -15,7 +15,7 @@ public class Triangle {
			trian = trian + 1;
		if (a == c)
			trian = trian + 2;
		if (b == a) // should be b == c
		if (b == a) // bug should be b == c
			trian = trian + 3;
		if (trian == 0)
			if (a + b <= c || a + c <= b || b + c <= a)
Loading