Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
retoor22782dIt could be good to make a base with the default tests by supplying a few tests upfront and say that you want functions like that. The businesslogic and stuff, i would write those tests myself.
So, it's good for boiler plate imho.
I only generated tests a few times just for fun, didn't use any of that in production . -
@retoor AI is good for boilerplate, yes.
But IMO boilerplate should be avoided, not offloaded to AI. The first step to avoid boilerplate is to pick a non-retarded language. -
I‘m skeptical if AI would be beneficial in writing specs (for tdd), because it doesn‘t know your specs. Only you know your specs.
I suspect that if you give this task to AI, you‘ll end up with functional, but mostly meaningless generic garbage which is not very useful for you. -
@cb219 I've had it generate a decent set of tests by just asking it to write tests for <insert code here>
Will probably need some clean up however -
Maybe it would work better the other way around. Write the tests and it will write the spec for you.
Related Rants
Curious about AI assisted TDD. Assisted writing of specs and then assisted implementation. Any experience so far? I kind of like the idea but I'm afraid it's like doing TDD with a toddler, helping less than 50% of the time.
rant
ai
tdd
assisted