Re:Pynguin – Generate Python unit tests automatically
by BiteCode_dev on Tuesday June 01, 2021 @01:03AM
(#27350871)
The README lacks of an example of input and output.
[ Parent
| on HN ]
Re:Pynguin – Generate Python unit tests automatically
by bobthecowboy on Tuesday June 01, 2021 @01:13AM
(#27350921)
It does, but their documentation's Quickstart has an example:
https://pynguin.readthedocs.io/en/latest/user/quickstart.htm...
Re:Pynguin – Generate Python unit tests automatically
by jeffreygoesto on Tuesday June 01, 2021 @02:29AM
(#27351268)
This looks like they combined the exploration strategy of property based testing with unit testing. This is not even testing, it tries to find some examples that result in different code paths. There is no concept of "expected result, given a certain input" and it does not try to find extreme cases or equivalence classes. Using it will result in a heap of buggy code that has a useless "but tested" sticker.
Re:Pynguin – Generate Python unit tests automatically
by newswasboring on Tuesday June 01, 2021 @04:11AM
(#27351795)
I think you are thinking of the use case wrong. In my work I come across a lot of untested legacy code. An autogenerated tests would be like guardrails when working with these code bases. I am not going to work with them blindly, it doesn't even do variable names yet, but its boilerplate stuff I would have written anyways. If this code gives me extensive coverage, adding test cases for specific things becomes trivial.
Re:Pynguin – Generate Python unit tests automatically
by d0ugal on Tuesday June 01, 2021 @01:11AM
(#27350915)
Agreed. I went digging and found one in the docs. https://pynguin.readthedocs.io/en/latest/user/quickstart.htm...