cd /news/developer-tools/show-hn-targeted-mutation-testing-ob… · home › topics › developer-tools › article
[ARTICLE · art-177334] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Show HN: Targeted Mutation Testing – Observation-guided mutation testing tool

A developer released Targeted Mutation Testing, an observation-guided mutation testing tool that observes a single test run and generates targeted mutants from what it sees, with a Rust implementation built first and a JS/TS implementation now published on GitHub. The author says the JS/TS version's focus on targeted mutants makes mutation testing practical for end-to-end tests, and that observation-guided rules can be combined with classic mutation rules for broader coverage. The tool cites SEMu, DSpot, the W-method and Meta's ACH as inspiration.

key takeaway

Targeted Mutation Testing generates mutants from a single observed test run instead of conventional mutation rules, and the JS/TS implementation's targeted approach makes mutation testing practical for end-to-end tests.

read1 min views9 publishedNov 27, 2026

Hi HN,

I built a mutation testing tool that takes a different approach from the conventional one. I'm calling it Targeted Mutation Testing.

As AI coding has become more common, mutation testing has become more important. It has helped me a lot personally. But ever since I first learned about it, I've kept wondering if there was a smarter way to do it.

Targeted Mutation Testing observes a single test run and generates targeted mutants from what it sees.

Of course, observation-guided rules have their own limits, so you can also combine them with classic mutation rules when you want more coverage.

This post links to the Rust implementation, which I built first. I also built a JS/TS implementation:

https://github.com/t-k/targeted-mutation-ts What's interesting about the JS/TS version is that, by focusing on targeted mutants, mutation testing can become practical for E2E tests.

I took inspiration from SEMu, DSpot, the W-method, and Meta's ACH. I listed the links at the end.

Would love any feedback. Thanks for taking a look.

- Killing Stubborn Mutants with Symbolic Execution (SEMu): [https://arxiv.org/abs/2001.02941](https://arxiv.org/abs/2001.02941)

- Automatic Test Improvement with DSpot: [https://arxiv.org/abs/1811.08330](https://arxiv.org/abs/1811.08330)

- Testing Software Design Modeled by Finite-State Machines (W-method): [https://doi.org/10.1109/TSE.1978.231496](https://doi.org/10.1109/TSE.1978.231496)

- Mutation-Guided LLM-based Test Generation at Meta (ACH): [https://arxiv.org/abs/2501.12862](https://arxiv.org/abs/2501.12862)

Comments URL: [https://news.ycombinator.com/item?id=50667811](https://news.ycombinator.com/item?id=50667811)

Points: 1

── more in #developer-tools 4 stories · sorted by recency
── more on @targeted mutation testing 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-targeted-mut…] indexed:0 read:1min 2026-11-27 · —