Hacker News new | ask | show | jobs
by renegade-otter 597 days ago
Right! AI is going to help you write passing tests - not BREAK your code, which is the whole point of writing tests.
1 comments

Tests are not just for breaking your code. Writing passing tests is great for regression testing, which I think is the most important kind of unit testing.

If your goal is to break your code, try fuzzing. For some reason, it seems that the only people who do it are in the field of cybersecurity. Fuzzing can do more than find vulnerabilities.