Unit testing is the process of verifying independently executable components of a software application under test. Unit testing is often automated but manual. Availability of several open source tools facilitates higher quality and more productive testing, but acquiring such tools is often complicated.
In this work, we analyze the usability of two open source unit testing Java tools – JUnit and TestNG – by assessing their comprehension, learnability, and operability. The comprehension and learnability of the tools were judged by capturing the students’ perception obtained during the assignment sessions. We performed tests on these tools for four moderately sized Java projects and assessed the operability.
This web page shows the Java example-codes and test files generated for both JUnit and TestNG testing tools are shown below.
Project 1: RealState Game System
Project 2: Calculator
Project 3: Car Sales System
Project 4: Hotel Management System
Other supplementary file illustrating (1) the annotations and (2) the functionalities provided by JUnit and TestNG testing tools.