DomUnit is a lightweight unit test framework for Lotus Notes/Domino 8.5.x and above. I tried to shoehorn JUnit 4.8.2 into Domino, but I found that results were not satisfactory for a variety of reasons. I worked on the 80/20 rule (80% of users will use only 20% of the function of any program) and coded up this simple alternative.

 

With the increasing use of Java in Domino as XPages become more common, much of your backe end code will be in Java and should reside in script libraries as classes and associated methods – hence the need for this.

 

The principle is based on the popular JUnit framework, but the code is written from scratch to provide basic functionality especially tailored for the Lotus Domino environment. I haven'y read the source code for Junit, but I suspect that, broadly speaking, there is only one way to skin this particular cat.

 

ENVIRONMENT REQUIRED

 

IBM Lotus Domino Designer 8.5.x, JVM of at least 1.5 (Annotations are used in this software).