1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-18 00:10:51 -07:00

Update README.md

This commit is contained in:
Sean Leary 2015-12-28 12:20:43 -06:00
parent cfec741090
commit 472439546a

View file

@ -12,15 +12,51 @@ Run individual tests or <b>JunitTestSuite</b> using <b>EclEmma Coverage</b>, or
**You will need the following libraries for testing:**<br> **You will need the following libraries for testing:**<br>
Test harness: http://junit.org<br> Test harness: http://junit.org<br>
* hamcrest-core-1.3.jar (for Junit)<br> * asm-1.0.2.jar<br>
* commons-io-2.1.jar<br>
* commons-lang-2.6.jar<br>
* hamcrest-core-1.3.jar<br>
* json-path-2.1.0.jar<br>
* json-smart-2.1.1.jar<br>
* junit-4.12.jar<br> * junit-4.12.jar<br>
Mockery: https://github.com/mockito/mockito <br>
* mockito-all-1.9.5.jar<br> * mockito-all-1.9.5.jar<br>
* slf4j-api-1.7.12.jar<br>
* slf-simple-1.7.12.jar<br>
* JSON-java.jar<br>
Coverage: http://www.eclemma.org/ (just install the latest in Eclipse)<br> **To build from the command line using gradle:**
build.gradle<br>
''''
# In this example, both the JSON-java jar and the test code is built <br>
# from the same build file, in the test code directory.
apply plugin: 'java'
jar.baseName = 'JSON-java'
JSON-Java.jar (make this jar of the files to be tested yourself)<br> sourceSets {
main {
java {
srcDir '../JSON-java/src/org/json'
}
}
test {
java {
srcDir 'src/org/json/junit'
}
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'com.jayway.jsonpath', name: 'json-path', version: '2.1.0'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
}
''''
To measure coverage: http://www.eclemma.org/ (just install the latest in Eclipse)<br>
<b>Conventions</b><br> <b>Conventions</b><br>
Test filenames should consist of the name of the module being tested, with the suffix "Test". Test filenames should consist of the name of the module being tested, with the suffix "Test".