nw-mutation-test

Automate feature-scoped mutation testing for Python, Java, and JavaScript projects.

Updated Mar 18, 2024
One-click install
npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-mutation-test-v1bh0r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nw-mutation-test
Source: https://github.com/v1bh0r/precise-ledger-pro/tree/main/nWave/skills/nw-mutation-test
Command: npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-mutation-test-v1bh0r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Mutation testing at the feature level to validate test-suites after implementation, ensuring bugs are caught and test coverage is meaningful.

Core Features & Use Cases

  • Feature-scoped mutation testing to assess test-suite effectiveness after feature implementation.
  • Language-aware execution: cosmic-ray for Python, PIT for Java, and Stryker for JS/TS.
  • Per-feature config generation and a dedicated mutation report at docs/feature/{feature-id}/deliver/mutation/mutation-report.md.

Quick Start

Invoke the mutation test for a given feature by specifying the feature-id and the target implementation scope.

Frequently Asked Questions about nw-mutation-test

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

FAQPage Schema
How do I run feature-scoped mutation testing for my project?

Feature-scoped mutation testing validates test-suite effectiveness by injecting faults into implementation files. You invoke it by specifying a feature-id and target scope, requiring an execution-log.json and a prepared mutation workflow to generate a dedicated mutation report.

What mutation testing tools work with Python, Java, and JavaScript projects?

Mutation testing tools vary by language: cosmic-ray for Python, PIT for Java, and Stryker for JavaScript and TypeScript. The appropriate tool is selected automatically by detecting the language from your project configuration.

Why does mutation testing matter for feature delivery?

Mutation testing matters for feature delivery because it validates that test coverage is meaningful, ensuring bugs are actually caught. It assesses test-suite effectiveness after implementation rather than just measuring line coverage.

Do I need an execution-log.json file before running a mutation test?

Yes, you need an execution-log.json containing implementation file lists and a prepared mutation workflow before running. These prerequisites define the feature scope and ensure the mutation tool targets the correct files.

Where does the mutation testing report get saved?

The mutation testing report is saved as a markdown file at docs/feature/{feature-id}/deliver/mutation/mutation-report.md. This dedicated location organizes results per feature for quality assurance tracking.

Can I use mutation testing to detect real bugs in my test suite?

Yes, mutation testing detects real bugs by applying small changes to your code and checking if your tests catch them. If tests pass despite mutations, it indicates gaps in test-suite effectiveness that need attention.