Skip to content

Commit 8546e68

Browse files
committed
update readme
1 parent 0832d1d commit 8546e68

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ cookie lists.
8787

8888
**XMLTokener.java**: `XMLTokener` extends `JSONTokener` for parsing XML text.
8989

90-
Unit tests are maintained in a separate project. Contributing developers can test
91-
JSON-java pull requests with the code in this project:
92-
https://github.com/stleary/JSON-Java-unit-test
90+
Unit tests are now included in the project, but require Java 1.8 at the present time. This will be fixed in a forthcoming commit.
9391

9492
Numeric types in this package comply with
9593
[ECMA-404: The JSON Data Interchange Format](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf) and
@@ -153,10 +151,14 @@ and artifactId "json". For example:
153151
https://search.maven.org/search?q=g:org.json%20AND%20a:json&core=gav
154152

155153
# Unit tests
156-
The test suite can be run by calling
154+
The test suite can be executed with Maven by running:
157155
```
158156
mvn test
159157
```
158+
The test suite can be executed with Gradle (6.4 or greater) by running:
159+
```
160+
gradle clean build test
161+
```
160162

161163

162164

@@ -176,7 +178,6 @@ For example, <b>Cookie.java</b> is tested by <b>CookieTest.java</b>.
176178
* Without unit tests it is hard to feel confident about the quality of the code, especially when fixing bugs or refactoring. Good tests prevents regressions and keeps the intent of the code correct.
177179
* If you have unit test results along with pull requests, the reviewer has an easier time understanding your code and determining if the it works as intended.
178180

179-
When you start working on a test, add the empty file to the repository and update the readme, so that others will know that test is taken.
180181

181182
**Caveats:**
182183
JSON-Java is Java 1.6-compatible, but JSON-Java-unit-tests requires Java 1.8. If you see this error when building JSON-Java-unit-test, make sure you have 1.8 installed, on your path, and set in JAVA_HOME:

0 commit comments

Comments
 (0)