2 ms·
One thing about a lot of Unit Test frameworks, is that there's hardly anything to them! SUnit, which is literally the granddaddy of a lot of the unit test fram
by stcredzero 18y ago
One thing about a lot of Unit Test frameworks, is that there's hardly anything to them! SUnit, which is literally the granddaddy of a lot of the unit test frameworks basically consists of:
- two exception handlers
- a superclass that you can subclass to have a place to
park your test code
- a reflective thingy that looks on those test classes
for methods that start with "test" and executes them.
The above was probably less than 40 lines of code. If you're competent, you should be able to roll your own.
- elviejo 18y agoCheck the book Test Driven Development by Example (Kent Beck) the second part of the book walks you on to How to build your own testing framework. Good read