Comment on How do you get your team to write tests?
EvanHahn@bigshoulders.city 1 year ago
Small idea: "AI" tools can write simple tests for a given function or class. I don't blindly endorse these tools nor is it a complete solution, but the time save might convince a reluctant developer.
I've had the most success patiently arguing the value of tests over time (years). When a bug would've been caught by a test, mention it. When someone would've moved faster with a test, say something. I haven't found "I'm right, let me convince you" pushes to be very effective.
kersplort@programming.dev 1 year ago
I’ve had some luck at using AI to get over the hump of the first “does this component work” test - it’s easy to detect stuff that needs to be mocked and put in stub mocks using GPT. GPT is horrible at writing good tests, but often it’s harder to write that first one than the meaningful tests.