-
Notifications
You must be signed in to change notification settings - Fork 40
Unit Testing
klaus edited this page Oct 2, 2017
·
1 revision
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.
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.
The input-output operations are mocked by a class that contains list of values to input, and stores all the outputs.