Introduction

Testing is a very important part of any software coding. Normally, time spent in testing and debugging takes the majority of the time in the software development process. Testing takes place in three levels, unit testing, module testing and system testing.

In this lab, we will talk about unit testing. Java has a library called JUnit which can be utilized for unit testing. In this lab, the idea of test-driven coding will be demonstrated as well as the working of JUnit library and its usefulness.

Lab Exercises

You will create unit tests for a few unimplemented matrix functions. Then, you will implement the functions via translation from C++ to Java and observe the validity of your implementations via the test cases.

Grading Criteria

This lab has 15 lab points. To receive the credits, you should be in the lab, conduct tasks following the instruction of the TA and demonstrate your results to the TA.

Resources