upvote
I've seen a lot of human-written tests that wind up testing the testing framework and not the actual code.
reply
yeah but it'll be one or two at a time that you find like that. LLMs will output two dozen tests for one line of real code, where you maybe needed one
reply
My workflow is: - Write the test first, confirm it fails - Write the minimum code to make that test pass - Confirm it is green
reply
TDD like this is a very good system for a lot of things, especially brownfield development - gotta make sure you understand the error space before you know you’ve fixed the error. :D
reply