Skip to content

Comment on Show HN: Flawd is mutation testing for the AI era

Comments

Okay, this looks great! I have been struggling with mutation testing on a personal project built in Python. Just a few things: how does it generate mutants? Does it need specific testing libraries (like pytest) and then create mutants out of those tests? For the particular project, I created a small testing library as I felt pytest would be overkill, curious if it'll be able to help me too.

Thanks! It generates mutant by parsing the source code (via tree-sitter) and then using a collection of operators to make changes such as invert booleans, flip comparison operators, etc.

It is built with certain testing libraries in mind, especially for defaults, but it is also extensible such that you should be able to get it working with your custom testing library. The `flawd init` command should provide some meaningful context, and I would be happy to lend a hand with config if you're up for sharing some more context. Feel free to contact me through the site or via email (in profile)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.