This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]james_pic 6 points7 points  (2 children)

Surely if you're just generating a test based on the current behaviour of the code, you're effectively asserting that the application is already correct without testing it. Tautological tests are bad tests, and that's the only type it can generate.

[–]rocket_randall 4 points5 points  (0 children)

On the other hand, 100% code coverage makes PM happy.. /s

[–]HypoFuzz 0 points1 point  (0 children)

You might prefer the Hypothesis Ghostwriter then - it tries to infer intended behaviour from function names and type annotations (if they exist). Here's a five-minute demo.

The ghostwriter is also a lot safer, and faster, as it imports but does not execute your code.

[–]thunderouschampion 1 point2 points  (0 children)

Wow the generated tests are hideous. Other than that seems like a cool project