utjava : Unit Test driver for java
Download Files
Changes
- Initial Version
Installation
- Place utjava.jar in a directory d:\yourdir.
- Modify the classpath to include "d:\yourdir\utjava.jar"
Notes
This is a Unit Test driver for java. It searches for all .class files in a given directory tree that have a suffix of "_UTest" and invokes any methods that have a signature like "void testxxx()".
Use
The command line looks like:
java.exe -cp \rootdir;\yourdir\utjava.jar utjava.ut rootdir
The dirtosearch is the root of the directory tree that contains the unit tests.
Typical output
Number of ut class files: 1
Number of unit tests : 2
Number of utassert calls: 1
Number of errors : 0
Number of exceptions : 0
This output shows:
- one class file was found that matched the suffix "_UTest.class"
- 2 unit tests were found with that class file
- there was one utassert called
- no errors or exceptions occurred
| Contact me about content on this page using john_web-at-arrizza-dot-com |
| For Web Master or site problems contact: webadmin-at-arrizza-dot-com |
| Copyright John Arrizza (c) 2001-2010 |