Live data from Hacker News

Cargo-mutants:zombie: Inject bugs and see if your tests catch them

github.com

1–10 of 18 posts

Re: Cargo-mutants:zombie: Inject bugs and see if your tests catch them

#3

I wonder if there’s something similar to run on a c codebase.

There's mull[1], which is based on LLVM toolchain and can accept any language that transforms into LLVM bytecode. SQLite[2] also does mutation testing, by compile and mutate generated assembly code.

[1]: https://mull.readthedocs.io/en/0.26.0/ [2]: https://sqlite.org/testing.html#mutation_testing

Re: Cargo-mutants:zombie: Inject bugs and see if your tests catch them

#5
This seems like a near perfect use of coding LLMs and a useful way to implement reinforcement learning.

“Add a major bug to this file that is not covered by existing tests” vs “Find the bug in this file” vs “write a sensible test in this file that protects against this type of bug”

Re: Cargo-mutants:zombie: Inject bugs and see if your tests catch them

#8
post #5

This seems like a near perfect use of coding LLMs and a useful way to implement reinforcement learning. “Add a major bug to this file that is not covered by existing tests” vs “Find the bug in this file” vs “write a sensible test in this file that protects against this type of bug”

Somehow that reminds me of how diffusion models are trained.

Re: Cargo-mutants:zombie: Inject bugs and see if your tests catch them

#10
Really cool! I wish there was such a thing for JavaScript.

I say this as a so-so software engineer. I badly wish there was more emphasis on increasing software quality. There is so much the industry could do to radically improve quality, such as tools like this.

I know the incentives just aren't there, but still.

Post reply on HN