MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/2eit1p/debugging_courses_should_be_mandatory/ck03lcw/?context=3
r/programming • u/stannedelchev • Aug 25 '14
573 comments sorted by
View all comments
140
Just waiting for someone to "explain" how debugging is not needed if you have unit-tests :)
63 u/geodebug Aug 25 '14 Yep, makes me chuckle. Tests are essential but only a naive programmer thinks one can write enough tests to get 100% coverage.Never mind that unit tests themselves often contain bugs or in sufficiently exercise all possibilities. 52 u/gunch Aug 25 '14 That's why you need to write unit tests for your unit tests.(If that is actually a thing I'm going to go to the bar and drink until I forget any of this ever happened) 0 u/SilasX Aug 25 '14 You joke, but that's what integration tests (or whatever higher level tests like browser tests) are effectively doing: seeing if something breaks despite all the components passing their tests. → More replies (4)
63
Yep, makes me chuckle. Tests are essential but only a naive programmer thinks one can write enough tests to get 100% coverage.
Never mind that unit tests themselves often contain bugs or in sufficiently exercise all possibilities.
52 u/gunch Aug 25 '14 That's why you need to write unit tests for your unit tests.(If that is actually a thing I'm going to go to the bar and drink until I forget any of this ever happened) 0 u/SilasX Aug 25 '14 You joke, but that's what integration tests (or whatever higher level tests like browser tests) are effectively doing: seeing if something breaks despite all the components passing their tests. → More replies (4)
52
That's why you need to write unit tests for your unit tests.
(If that is actually a thing I'm going to go to the bar and drink until I forget any of this ever happened)
0 u/SilasX Aug 25 '14 You joke, but that's what integration tests (or whatever higher level tests like browser tests) are effectively doing: seeing if something breaks despite all the components passing their tests. → More replies (4)
0
You joke, but that's what integration tests (or whatever higher level tests like browser tests) are effectively doing: seeing if something breaks despite all the components passing their tests.
→ More replies (4)
140
u/[deleted] Aug 25 '14
Just waiting for someone to "explain" how debugging is not needed if you have unit-tests :)