Ask HN: Do your tests clear "If the tests pass, you cannot break the code" bar?
1 points
2 hours ago
| 1 comment
| HN
Why or why not?

This is how I have found AI to be very powerful. If my tests pass, I know my code won't break. I spend more time on tests than any other part of the code-base. I am curious who else is building in this manner? I use the statement in the title because I feel that is the bar you have to meet to get the AI to work well, but once you meet that bar lately it has been working pretty flawlessly for me.

davydm
1 hour ago
[-]
My tests? Sure. Co-workers? Unlikely. Historical co-workers who are no longer with us except in the code they left? Not a chance.

But when I have to work in an area, the first thing I look for is coverage, and if it's not there, I add "fixing tests" to enforce the existing behavior before making changes so I'll know when I broke something.

reply