{"slug": "show-hn-targeted-mutation-testing-observation-guided-mutation-testing-tool", "title": "Show HN: Targeted Mutation Testing – Observation-guided mutation testing tool", "summary": "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.", "body_md": "Hi HN,\n\nI built a mutation testing tool that takes a different approach from the conventional one. I'm calling it Targeted Mutation Testing.\n\nAs 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.\n\nTargeted Mutation Testing observes a single test run and generates targeted mutants from what it sees.\n\nOf course, observation-guided rules have their own limits, so you can also combine them with classic mutation rules when you want more coverage.\n\nThis post links to the Rust implementation, which I built first. I also built a JS/TS implementation:\n\n[https://github.com/t-k/targeted-mutation-ts](https://github.com/t-k/targeted-mutation-ts)\n\nWhat's interesting about the JS/TS version is that, by focusing on targeted mutants, mutation testing can become practical for E2E tests.\n\nI took inspiration from SEMu, DSpot, the W-method, and Meta's ACH. I listed the links at the end.\n\nWould love any feedback. Thanks for taking a look.\n\n- Killing Stubborn Mutants with Symbolic Execution (SEMu): [https://arxiv.org/abs/2001.02941](https://arxiv.org/abs/2001.02941)\n\n- Automatic Test Improvement with DSpot: [https://arxiv.org/abs/1811.08330](https://arxiv.org/abs/1811.08330)\n\n- 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)\n\n- Mutation-Guided LLM-based Test Generation at Meta (ACH): [https://arxiv.org/abs/2501.12862](https://arxiv.org/abs/2501.12862)\n\nComments URL: [https://news.ycombinator.com/item?id=50667811](https://news.ycombinator.com/item?id=50667811)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-targeted-mutation-testing-observation-guided-mutation-testing-tool", "canonical_source": "https://github.com/t-k/targeted-mutation", "published_at": "2026-11-27 15:07:53+00:00", "updated_at": "2026-11-27 15:13:55.342690+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["Targeted Mutation Testing", "GitHub", "SEMu", "DSpot", "Meta", "ACH"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-targeted-mutation-testing-observation-guided-mutation-testing-tool", "markdown": "https://wpnews.pro/news/show-hn-targeted-mutation-testing-observation-guided-mutation-testing-tool.md", "text": "https://wpnews.pro/news/show-hn-targeted-mutation-testing-observation-guided-mutation-testing-tool.txt", "jsonld": "https://wpnews.pro/news/show-hn-targeted-mutation-testing-observation-guided-mutation-testing-tool.jsonld"}}