Timeline for Unit testing function that reads from pdf - Having dedicated external files?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 16, 2021 at 11:52 | comment | added | João Farias | Unit tests are made for public APIs. A set of public + many private methods are usually a result of one big public method developed driven by unit tests followed by many extract method refactorings. These private methods are not part of any public API. If you call public methods, these would have to be developed driven by unit tests in the first place, because they are not bound to this callee. | |
Nov 12, 2021 at 12:16 | vote | accept | Alvaro Aguilar | ||
Nov 11, 2021 at 19:19 | comment | added | Alvaro Aguilar | That's very helpul. If I have a function that then calls each of those in turn, would I need to have unit tests for that third function too? or would it be ok to just test that the third function calls each of the two and they are tested? | |
Nov 11, 2021 at 13:37 | history | answered | João Farias | CC BY-SA 4.0 |