Skip to content

Behavior added with no test changed in the same change ​

Tests and verification: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc gives every session the rule: new behavior gets one focused test.

What makes behavior added with no test changed in the same change a bad practice? ​

The standard that calls it a bad practice: Google engineering practices: tests ship with the change they test.

What does lessloc do about behavior added with no test changed in the same change? ​

lessloc gives every session the rule: new behavior gets one focused test. lessloc catches it as untested. It is not raised for refactors, for fixes that do not grow the code, or for projects without tests.

The other patterns in Tests and verification:

Released under the Apache-2.0 license. · llms.txt