Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.61 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.61 KB

Simple unit testing framework for educational purpose

Lens Unit own CI Quality Gate Status

Goal

The aim of this simple unit testing framework in Java is to illustrate the use of various design patterns.

The design of the testing framework is inspired by the original JUnit 3 design.

That framework is not meant to be used in production. It is just an educational exercise.

The framework does not use any difficult Java constructs since it is aimed at entry level Java programmers and OO designers.

Feel free to create issues if you have ideas how to add new functionalities using new design patterns.

How to give it a try?

$ ./build.sh
$ ./runtests.sh org.lensunit.Basic
testTrivialOk OK
testEasyCases OK
testFailingTest FAILURE
java.lang.AssertionError
testFailingEquals FAILURE
java.lang.AssertionError: Expected 2 but got 4
Total 4 test(s) run, status is FAILURE

Design patterns used so far