News for hackers. Stuff that matters.
Re:Delete Tests by vitonsky on Saturday August 30, 2025 @02:38AM (#45072400)
No, thanks. I already spent time to write tests while implementing a features, now I have a lot of tests that proof the feature is works fine, and I no more fear to make changes, because tests keep me safe of regression bugs.

The typical problems of any code base with no tests is a regression bugs, rigid team (because they must keep in mind all cases when code may destroy everything), fear driven development (because even team with zero rotation factor don't actually remember all problems they've fixed).

Re:Delete Tests by willio58 on Saturday August 30, 2025 @02:55AM (#45072478)
Did you read the article?

What is your answer to the points the author makes around flaky tests/changing business requirements/too many tests confirming the same functionality and taking too long to run?

Re:Delete Tests by snovv_crash on Saturday August 30, 2025 @03:22AM (#45072615)
Flaky tests: tests should be deterministic. If your tests are flakey in a 100% controlled environment, probably your real system is unreliable too.

Changing business requirements: business logic should be tested separately. It is expected to change, so if all of your tests include it, then yes of course it will be hard to maintain.

Too many tests for the same thing: yeah then maybe delete some of the duplicates?

Taking too long: mock stuff out. Also, maybe reconsider some architectural decisions you made, if your tests take too long it's probably going to bother your customers with slow behaviour too.

Re:Delete Tests by ikari_pl on Saturday August 30, 2025 @03:24AM (#45072625)
I think the point of article is to delete the BAD tests.

Just like you need to delete the bad code, not all the code. ;)

Re:Delete Tests by CPLX on Saturday August 30, 2025 @03:20AM (#45072603)
Hacker News is a prominent message board where users create wide ranging conversations based on article titles.