logoalt Hacker News

nsxwolfyesterday at 10:18 PM3 repliesview on HN

Absolutely the worst. 1000 line test setups that shatter into pieces the instant you try to make the simplest change to a function. Makes refactoring an absolute nightmare.


Replies

pjc50yesterday at 10:27 PM

What's specifically bad about Mockito here? Poor defaults for mocks?

show 5 replies
mangodrunktoday at 12:49 AM

Which is absurd that people use mocks considering the tests are supposed to help with refactoring but because of the mocks they can’t make a change without breaking the test.

the_aruntoday at 2:53 AM

I wish there are tests written to cover functionalities (& race conditions) instead of covering lines/branches.