Skip to content

Commit 6dd85ad

Browse files
committed
Update README.md
1 parent 99927c5 commit 6dd85ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ Mockery: https://github.com/mockito/mockito <br>
2020
Coverage: http://www.eclemma.org/ (just install the latest in Eclipse)<br>
2121
JSON-Java.jar (make this jar of the files to be tested yourself)<br>
2222

23-
*Conventions*<br>
23+
<b>Conventions</b><br>
2424
Test filenames should consist of the name of the module being tested, with the suffix "Test".
2525
For example, <b>Cookie.java</b> is tested by <b>CookieTest.java</b>.
2626
When adding a new unit test, don't forget to update <b>JunitTestSuite.java</b>.
2727

28-
*The fundamental issues with JSON-Java testing are:*
28+
<b>The fundamental issues with JSON-Java testing are:</b><br>
2929
* <b>JSONObjects</b> are unordered, making simple string comparison ineffective.
3030
* Comparisons via **equals()** is not currently supported. Neither <b>JSONArray</b> nor <b>JSONObject</b> overrride <b>hashCode()</b> or <b>equals()</b>, so comparison defaults to the <b>Object</b> equals(), which is not useful.
3131
* Access to the <b>JSONArray</b> and <b>JSONObject</b> internal containers for comparison is not currently available.
3232

33-
General issues with unit testing are:
33+
<b>General issues with unit testing are:</b><br>
3434
* Just writing tests to make coverage goals tends to result in poor tests.
3535
* Unit tests are a form of documentation - how a given method actually works is demonstrated by the test. So for a code reviewer or future developer looking at code a good test helps explain how a function is supposed to work according to the original author. This can be difficult if you are not the original developer.
3636
* It is difficult to evaluate unit tests in a vacuum. You also need to see the code being tested to understand if a test is good.

0 commit comments

Comments
 (0)