Timeline for Should you indirectly test private methods from within public method tests?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 29, 2016 at 17:25 | vote | accept | Jake Wilson | ||
Nov 28, 2016 at 22:55 | comment | added | Brandon |
This sentence says it all: It is all about what is the expected behavior of your class from the perspective of the rest of the system . Unit testing and TDD made more sense to me when I stopped thinking about testing methods and instead tested behaviors.
|
|
Nov 28, 2016 at 22:49 | comment | added | whatsisname | Even with 100% code coverage you can still encounter non-obvious code paths that aren't tested, such as overflow conditions. | |
Nov 21, 2016 at 8:12 | history | answered | bikeman868 | CC BY-SA 3.0 |