Re:Meta's new LLM-based test generator is a sneak peek to th...
by zeroonetwothree on Friday February 23, 2024 @08:31PM
(#39488306)
When I do code review I always review the tests first. If they look through and reasonable then I can be a lot less careful reviewing the rest.
Re:Meta's new LLM-based test generator is a sneak peek to th...
by postalrat on Saturday February 24, 2024 @12:25AM
(#39489348)
Tests never cover everything so exactly what are you looking for?
Re:Meta's new LLM-based test generator is a sneak peek to th...
by Muromec on Saturday February 24, 2024 @05:14AM
(#39490510)
For example, just check the list of units, see that there is one for a happy flow, but none for error flow. Check that a number of tests correlates well with apparent cyclomatic complexity of the code. Check that tests are actually defining and testing relevant behavior and not just "I called method A, dus the method B was called".
I feel the same way about how test code is viewed even outside of AI. A lot of the time the test code is treated as a lower priority code given to more junior engineers, which seems like the opposite of what you would want.