Mutasaurus
Mutation testing made simple

Improve your code quality by introducing code variants.
Find hidden bugs and strengthen your test suite.

What is Mutation Testing?

Original Code

function add(a, b) {
  return a + b;
}

Your Test

test("add function", () => {
  assertEquals(add(2, 2), 4);
})

Mutation testing evaluates the quality of your tests by introducing bugs (mutations) into your code and checking if your tests catch them. If your tests fail, the mutant is "killed". If they pass, the mutant "survives". More killed mutants = greater test quality!

Excavate Better Tests

Mutant Generation

Automatically creates code variants (mutants) to simulate bugs in your codebase.

Deno Native

Built specifically for Deno projects with zero configuration required.

Fast

Parallel test execution for rapid mutation analysis. Rust Oxc under the hood.

Mutation Score

Provides a clear metric of how effective your tests are at catching bugs.

TypeScript Support

Full support for TypeScript projects with accurate mutation analysis.

Reports

Reports showing surviving mutants and areas needing better test coverage.

Get Started in Minutes

import { Mutasaurus } from "jsr:@mutasaurus/mutasaurus";

const mutasaurus = new Mutasaurus();
const mutationResult = await mutasaurus.run();

Join the Excavation

Mutasaurus is an open-source project.
Help us dig up better ways to test Deno applications!