Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 44c3e32

Browse files
authoredJul 20, 2017
Merge pull request stleary#77 from johnjaylward/FixJUnitGradleConfig
Fixes Gradle config so tests are only run once
2 parents cf411b3 + f2f6ad3 commit 44c3e32

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ dependencies {
2828
// testCompile files('./JSON-Java.jar')
2929
}
3030

31-
test { finalizedBy jacocoTestReport }
31+
test {
32+
include "org/json/junit/JunitTestSuite.class"
33+
finalizedBy jacocoTestReport
34+
}
3235
jacocoTestReport{
3336
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
3437
reports {

‎src/test/java/org/json/junit/JunitTestSuite.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
JSONArrayTest.class,
1818
EnumTest.class,
1919
JSONPointerTest.class,
20-
JSONStringTest.class
20+
JSONStringTest.class,
21+
JSONTokenerTest.class
2122
})
2223
public class JunitTestSuite {
2324
}

0 commit comments

Comments
 (0)
Please sign in to comment.