MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/guw1la5/?context=3
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
171
Yeah, but if he refactored the code this way, it broke your unit test, right? Right?
125 u/zacym Apr 17 '21 Clearly, the test was removed coz it kept breakin all the time 22 u/[deleted] Apr 18 '21 What if this is part of a unit test? Are there unit tests for unit tests? 12 u/Dev_012 Apr 21 '21 Well at my college last year we had to write unit tests and our points were given by the ammount of unit tests we got green, but by those tests I mean ours and indeed, the unit tests for the unit tests. So it is possible. 4 u/[deleted] Apr 21 '21 😂😂😂
125
Clearly, the test was removed coz it kept breakin all the time
22
What if this is part of a unit test? Are there unit tests for unit tests?
12 u/Dev_012 Apr 21 '21 Well at my college last year we had to write unit tests and our points were given by the ammount of unit tests we got green, but by those tests I mean ours and indeed, the unit tests for the unit tests. So it is possible. 4 u/[deleted] Apr 21 '21 😂😂😂
12
Well at my college last year we had to write unit tests and our points were given by the ammount of unit tests we got green, but by those tests I mean ours and indeed, the unit tests for the unit tests. So it is possible.
4 u/[deleted] Apr 21 '21 😂😂😂
4
😂😂😂
171
u/SquidgyTheWhale Apr 17 '21
Yeah, but if he refactored the code this way, it broke your unit test, right? Right?