Skip to content
southernbear edited this page Dec 15, 2012 · 2 revisions

Home > Developing > Unit Test

Every thing needs test

Write Test

  • Test code with JUnit 4
  • Name the test code file XXXTest.java if source file is XXX.java
  • Put your test code in test directory and keep the hierarchy

Example

To test html2window.dom.UIParser.java in src/html2window/dom
Write UIParserTest.java and put in test/html2window/dom

Run Test

In the project directory, run ant test.
The output will be in test-output

Clone this wiki locally