CS 2401 - AY2019-T3: Week 5 Discussion Question
Re: Week 5 Discussion Question
by Ntsako Mhlongo - Wednesday, 6 March 2019, 3:27 PM
That was an excellent discussion forum post. You really explained everything well
and provided us with a great examples.
Permalink | Show parent | Reply
Re: Week 5 Discussion Question by Karen
by Karen Cristina Cordova - Monday, 4 March 2019, 2:23 PM
Why Test Cases?
Test cases de²ne exactly what the module should do;
Test cases force the designer to think about extreme cases;
Test cases force the designer to rethink the module design before constructing it.
"A unit test is basically the test of the least testable part of a program" (Lima, 2017).
The goal is to isolate each part of the system to ensure that it is operating as
speci²ed. In this way, the developer who will do the evaluation must always think
about what requirements that functionality to be tested has to match, what should be
input and output information and also how the ´ow processing of those data works.
By using this type of test throughout the implementation it is possible to reduce the
number of bugs in the ²nal application. Unit tests work by comparing the results of
the functions to be tested with expected values.