Skip to content

A refactor that changes existing tests ​

Tests and verification: one of the ways AI coding agents bloat software, from lessloc's pattern catalog. lessloc catches it as refactor-tests.

What makes a refactor that changes existing tests a bad practice? ​

The standard that calls it a bad practice: Fowler: refactoring preserves behavior.

What does lessloc do about a refactor that changes existing tests? ​

lessloc catches it as refactor-tests.

  • refactor-tests (tier 2): A refactor changed existing tests.

The other patterns in Tests and verification:

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