News for hackers. Stuff that matters.
Re:Automated Unit Test Improvement Using Large Language Mode... by foofie on Saturday February 17, 2024 @06:19AM (#39408457)
> So people started writing stupid unit tests for getters and setters in Java DTOs to reach the goal.

To me that reads like your team fucked up at a very fundamental level, as they both failed to take into account the whole point of automated tests and also everyone failed to flag those nonsense tests as a critical blocker for the PR.

Unless your getters aand setters are dead code, they are already exercised by any test covering the happy path. Also, a 80% coverage target leaves out plenty of headroom to leave out stupid getter/setter tests.

A team that pulls this sort of stunt is a team that has opted to develop defensive tricks to preserve their incompetence instead of working on having in place something that actually benefits them.

Re:Automated Unit Test Improvement Using Large Language Mode... by drowsspa on Saturday February 17, 2024 @09:39AM (#39409783)
The incentives are obviously pointing towards this. And that it is so common should make you rethink your stance of "they're just incompetent".