Skip to content

Commit 4724395

Browse files
committed
Update README.md
1 parent cfec741 commit 4724395

File tree

1 file changed

+43
-7
lines changed

1 file changed

+43
-7
lines changed

README.md

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,51 @@ Run individual tests or <b>JunitTestSuite</b> using <b>EclEmma Coverage</b>, or
1212

1313
**You will need the following libraries for testing:**<br>
1414
Test harness: http://junit.org<br>
15-
* hamcrest-core-1.3.jar (for Junit)<br>
15+
* asm-1.0.2.jar<br>
16+
* commons-io-2.1.jar<br>
17+
* commons-lang-2.6.jar<br>
18+
* hamcrest-core-1.3.jar<br>
19+
* json-path-2.1.0.jar<br>
20+
* json-smart-2.1.1.jar<br>
1621
* junit-4.12.jar<br>
17-
18-
Mockery: https://github.com/mockito/mockito <br>
1922
* mockito-all-1.9.5.jar<br>
20-
21-
Coverage: http://www.eclemma.org/ (just install the latest in Eclipse)<br>
22-
23-
JSON-Java.jar (make this jar of the files to be tested yourself)<br>
23+
* slf4j-api-1.7.12.jar<br>
24+
* slf-simple-1.7.12.jar<br>
25+
* JSON-java.jar<br>
26+
27+
**To build from the command line using gradle:**
28+
build.gradle<br>
29+
''''
30+
# In this example, both the JSON-java jar and the test code is built <br>
31+
# from the same build file, in the test code directory.
32+
apply plugin: 'java'
33+
jar.baseName = 'JSON-java'
34+
35+
sourceSets {
36+
main {
37+
java {
38+
srcDir '../JSON-java/src/org/json'
39+
}
40+
}
41+
test {
42+
java {
43+
srcDir 'src/org/json/junit'
44+
}
45+
}
46+
}
47+
48+
repositories {
49+
mavenCentral()
50+
}
51+
52+
dependencies {
53+
testCompile group: 'junit', name: 'junit', version: '4.+'
54+
testCompile group: 'com.jayway.jsonpath', name: 'json-path', version: '2.1.0'
55+
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
56+
}
57+
''''
58+
59+
To measure coverage: http://www.eclemma.org/ (just install the latest in Eclipse)<br>
2460

2561
<b>Conventions</b><br>
2662
Test filenames should consist of the name of the module being tested, with the suffix "Test".

0 commit comments

Comments
 (0)