News for hackers. Stuff that matters.
Re:Perl code that is syntactically correct only on Fridays by ljm on Wednesday February 16, 2022 @11:35AM (#30362111)
As far as I'm concerned, writing tests is a different skillset and its often underdeveloped. It then snowballs into hating testing, because all you've experienced is a poor test suite that gets worse over time. It's hard to do well as you say, and it also gets glossed over in code review as long as the tests pass. Do the tests actually verify anything useful? Who knows, build is green!

That's how you get an application with 50,000 unit and integration tests that you can't run locally, and requires massive parallelism in CI to finish in any reasonable timeframe.

Re:Perl code that is syntactically correct only on Fridays by jamesfinlayson on Wednesday February 16, 2022 @08:37PM (#30368528)
My favourite is the test suite where each test relies on data from every other test, so running a test in isolation fails, and adding a new test is almost impossible without breaking a bunch of other tests.
Re:Perl code that is syntactically correct only on Fridays by salawat on Thursday February 17, 2022 @09:54AM (#30373658)
Ugh. Cross test dependency.

Mine is lack of future-proofing. Using dates stuck at one point in time. Or worse, the test suite that fails because of local clock skew.