Re:Pynguin – Generate Python unit tests automatically
by wpietri on Tuesday June 01, 2021 @11:42AM
(#27356242)
Even there, the code already records how the code behaves. The question is always which of those behaviors are intentional, meaningful. I am unable to fathom the utility of recording an arbitrary slice of behaviors, because those are very likely to be orthogonal or even contrary to the actual intent of the system. For example, every bug is part of how the code actually behaves.
I would much rather inherit a code base with zero tests than ones automatically generated by people who "just don't want to write tests".
Re:Pynguin – Generate Python unit tests automatically
by wpietri on Tuesday June 01, 2021 @12:55PM
(#27357601)
That's definitely not true. Tests that lock in a bug or an accidental epiphenomenon of code are demonstrably worse, because they actively discourage improvement.
I would much rather inherit a code base with zero tests than ones automatically generated by people who "just don't want to write tests".