Skip to content

Unit Testing

klaus edited this page Oct 2, 2017 · 1 revision

Testing

Testing an application wih a lot of input/output operation can be very long, correcting bugs, too. The best way to both remove bugs and avoid regression is to unit test the application.

Prove I'm wrong !

If ever you found a bug, it is useless to send me your code. The best way is to write a test that shows out the error. I'll use it to debug alongside with my other tests to make sure the bug is properly corrected.

Mocking the menus

The input-output operations are mocked by a class that contains list of values to input, and stores all the outputs.

A sample test

Clone this wiki locally