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