|
|
|
|
|
by hashfold
5247 days ago
|
|
there are really nice comments below in this thread on why testing functionality is better than writing unit test cases to test the functions/methods/code.
e.g.
wr1472: test the what not the how
MrEnigma: the higher level the test (i.e. unit ->
integration -> functional) the better they catch things
Keithnoizu: verify requirements not implementation details we understand that the unit testing is trying to test the functionality and making sure that the acceptance criteria is also met at the same time. I would like to mention one more point is that we should also try to write unit test cases not just only test the functionality but also try to do a good code coverage. unit test cases are tools for:
1. functionality testing
2. comply with acceptance criteria
3. a tool to help good code coverage
4. be iterative. be backward compatible as long as it could. (anyway to add logic based on version of the code change? need to think on this). yes it makes it little bulky but will work and avoid needing code cleanup and redesigns. let unit tests help come up with min 80% of code coverage. |
|