mutation-testing

Run mutation testing on Rust and TON smart contracts with mewt and muton.

6.5k|561|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/trailofbits/skills --skill mutation-testing-trailofbits
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mutation-testing
Source: https://github.com/trailofbits/skills/tree/main/plugins/mutation-testing/skills/mutation-testing
Command: npx skills add https://github.com/trailofbits/skills --skill mutation-testing-trailofbits

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mewt, muton, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Mutation testing automates the identification of bugs that conventional testing may miss. This Skill streamlines the process of setting up and running mutation testing campaigns for Rust and TON smart contracts, making it easier to catch hidden bugs.

Core Features & Use Cases

  • Mutation Testing Setup: Automatically initialize mutation testing configurations with predefined mewt.toml and muton.toml files.
  • Customizable Campaigns: Adjust target scopes, tune timeouts, and optimize long-running campaigns with specific optimization strategies.
  • Language Support: Supports Rust and TON smart contracts using mewt and muton respectively.
  • Use Case: Enhance your Rust application's or smart contract's reliability by detecting bugs through mutation testing, and gain confidence in the codebase's quality.

Quick Start

Initialize a mutation testing campaign for a Rust project: Run the mewt init command to begin.

Frequently Asked Questions about mutation-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does mutation testing find missing test cases in Rust code?

Mutation testing identifies missing test cases by making small modifications to Rust code and observing if the tests fail. This Skill automates the process using mewt to help developers catch hidden bugs that conventional unit testing may miss.

What is the best way to start a mutation testing campaign for TON smart contracts?

To start mutation testing for TON smart contracts, initialize the campaign by generating a predefined muton.toml configuration file. This Skill automates the setup process using muton to evaluate your smart contract test suite effectiveness.

Can I adjust the scope and timeouts for long-running mutation testing campaigns?

You can customize mutation testing campaigns by adjusting target scopes and tuning timeouts. This Skill supports specific optimization strategies to handle long-running campaigns efficiently for both Rust applications and smart contracts.

Does mutation testing work with both Rust applications and TON smart contracts?

Mutation testing works with both Rust and TON smart contracts. This Skill leverages mewt for Rust codebases and muton for TON smart contracts, allowing developers and auditors to validate test suite comprehensiveness across both environments.

Why use mutation testing instead of just increasing unit test coverage?

Mutation testing goes beyond standard unit test coverage by actively mutating code to verify if existing tests detect the changes. This Skill automates these mutations to reveal insufficient test cases and provide deeper confidence in codebase quality.