Timeline for Why is unit testing private methods considered as bad practice?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 5, 2022 at 18:08 | comment | added | John Jiang | My private methods can be extremely short and single-purpose as well. Why would a test rewrite be necessary? | |
| Oct 19, 2018 at 22:28 | comment | added | Robert Harvey | @DavidArno: Maybe because testing private methods doesn't really have much to do with test granularity. It has everything to do with coupling to implementation details. | |
| Oct 19, 2018 at 20:05 | comment | added | David Arno | Not sure why your answer has been downvoted. It’s short, to the point and gets the answer 100% correct. | |
| Oct 19, 2018 at 15:52 | history | answered | Pete | CC BY-SA 4.0 |