Re:Meta's new LLM-based test generator is a sneak peek to th...
by robryk on Saturday February 24, 2024 @04:03AM
(#39490223)
This is my experience, unless I try to make the contract of the thing simple to test via property testing. Then, writing tests often becomes basically an exercise in writing down the contract in a succinct way.
Sadly, this is a rare approach, so if you cooperate with others it's hard to use it.
Re:Meta's new LLM-based test generator is a sneak peek to th...
by Muromec on Saturday February 24, 2024 @05:12AM
(#39490492)
I actually enjoy writing unit tests, but I do frontend stuff. For me it's the moment of calm and reflection when I step back and look carefully at what I built and say "nice, it works" to myself.
In my experience, at least in languages like C++ or Java, unit tests are made of tedium, so I'm absolutely not surprised that the first instinct is to use LLMs to write that for you.