Remix.run Logo
willio58 7 days ago

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?

snovv_crash 6 days ago | parent | next [-]

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.

ikari_pl 6 days ago | parent | prev | next [-]

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. ;)

CPLX 6 days ago | parent | prev [-]

Hacker News is a prominent message board where users create wide ranging conversations based on article titles.