You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,10 @@ Unit tests to validate the JSON-Java GitHub project code<br>
4
4
5
5
https://github.com/douglascrockford/JSON-java<br>
6
6
7
-
*These tests are a work in progress. Help from interested developers is welcome.*<br>
8
-
More coverage is needed, but more importantly, improvements to test quality is needed.<br>
9
-
10
-
Eclipse is the recommended development environment.<br>
7
+
Gradle and Eclipse is the recommended build tool and IDE.<br>
11
8
Run individual tests or <b>JunitTestSuite</b> using <b>EclEmma Coverage</b>, or execute the **TestRunner** application directly.<br>
12
9
13
-
**You will need the following libraries for testing:**<br>
10
+
**The following libraries are required:**<br>
14
11
* asm-1.0.2.jar<br>
15
12
* commons-io-2.1.jar<br>
16
13
* commons-lang-2.6.jar<br>
@@ -24,10 +21,31 @@ Run individual tests or <b>JunitTestSuite</b> using <b>EclEmma Coverage</b>, or
24
21
* JSON-java.jar<br>
25
22
26
23
**To build from the command line using gradle:**
27
-
Until the unit tests are merged into the JSON-Java project, the code has to be wired by hand. After cloning JSON-Java-unit-test, create a directory structure under src and copy the JSON-Java files into: src/org/json. Then execute the unit tests and code coverage with:
24
+
Until the unit tests are merged into the JSON-Java project, the code has to be wired by hand.
25
+
\# In an empty directory of your choice, clone JSON-Java-unit-test:
\# Build, then execute the unit tests and code coverage
28
38
````
29
39
gradle clean build test jacocoTestReport
30
40
````
41
+
Unit test results will be in build\reports\tests\index.html<br>
42
+
Code coverage will be in build\reports\jacoco\html\index.html
43
+
44
+
To create an Eclipse project, you will need the Eclipse Gradle plug-in, available from the Eclipse Marketplace. I am currently using Gradle IDE 3.6.4.201503050952-RELEASE<br>
0 commit comments