Skip to content

Commit

Permalink
Merge pull request #77 from johnjaylward/FixJUnitGradleConfig
Browse files Browse the repository at this point in the history
Fixes Gradle config so tests are only run once
  • Loading branch information
stleary authored Jul 20, 2017
2 parents cf411b3 + f2f6ad3 commit 44c3e32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ dependencies {
// testCompile files('./JSON-Java.jar')
}

test { finalizedBy jacocoTestReport }
test {
include "org/json/junit/JunitTestSuite.class"
finalizedBy jacocoTestReport
}
jacocoTestReport{
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/org/json/junit/JunitTestSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
JSONArrayTest.class,
EnumTest.class,
JSONPointerTest.class,
JSONStringTest.class
JSONStringTest.class,
JSONTokenerTest.class
})
public class JunitTestSuite {
}

0 comments on commit 44c3e32

Please sign in to comment.