Can Mayhem help me generate unit tests so that I don't have to write my own?

Hello again.

Can Mayhem help me generate unit tests so that I don’t have to write my own?

The type of testing that Mayhem provides is not unit testing, which is sometimes referred to as positive testing. Positive testing is checking that a certain behavior occurs given a specific input. Mayhem on the other hand is performing fuzz testing, which is a form of negative testing. Its checking for unexpected behaviors.

Mayhem does however, generate a test suite autonomously. The thing that no testing solution can do for you is autonomously specify the expected outputs. So you could use Mayhem to generate a test suite autonomously, but you’d need to encode the assertions into your codebase for Mayhem to find violations of the assertions.