News for hackers. Stuff that matters.
Re:Automated Unit Test Improvement Using Large Language Mode... by kevin_nisbet on Saturday February 17, 2024 @01:11PM (#39411812)
Yea, I've seen this get carried away even by just individual team members.

My personal favorite was tests that a team member introduced for an object that had all the default runtime parameters in it. Think like how long should a timeout be by default, before getting overridden by instance specific settings. This team member introduced a test that checked that each value was the same as it was configured to.

So if I wanted to update or add a default, I had to write it in two places, the actual default value, and the unit test that checked if the defaults were the same as the test required.

There are no comments on this comment yet.