| ▲ | mejutoco 4 hours ago | |
IMO the solution to too many tests is to encode more things in the type system. If you can encode constraints like the length of an array in the type system you know it is correct if it compiles, and that is one less run-time test to run. | ||
| ▲ | CharlieDigital 3 hours ago | parent [-] | |
Agree, but this is not a pattern that is emergent from any coding agent I've used; it is only the result of explicit guidance to structure code in specific ways + relying on platform level analyzers. But more specifically, I usually see the explosion of test code in integration tests where there is heavy setup of entity graphs. | ||