Just load the file: nl-unittest.lsp in the main directory.
true if you want to output the whole assert expression, and nil if you want the output to be of the form => Expected: <some-value> -> Received: <some-value>. Default value: nil.
true if you want to continue testing whatever the previous test case result is, and nil otherwise. Default value: true.
true if you want to have colors in VT-100 compatible terminal, and nil otherwise. Default value: true.
true if you want to report failed assertions, and nil otherwise. Default value: true.
true if you want to report passed assertions, and nil otherwise. Default value: nil.
- First, load the main file nl-unittest.lsp. You will have a defined context named UnitTest.
- Define a test case with: (define-test (test-name params) body*). Remember to have convention for test-name or you might suffer from symbols conflicting.
- Whenever you want to run a test case, call its in exactly the same way you call function.
- If you want to run all the test cases at the same time, name the test with the prefix test_ and call (UnitTest:run-all context-symbol).
- Fix time calculation.
- More options about output.
- Separating output and results.
- Assertions inside other forms (Done! Sun, 05 Jun 2011 00:34:31 +0700)
See COPYING for more details.