Skip to content

muttest

0.3.0Package record

Mutation Testing

0packages dependsuggested by 1
5.9Kdownloads / year
97.3%test coverage
13/13flavors OK

Overview

About

Measure quality of your tests. 'muttest' introduces small changes (mutations) to your code and runs your tests to check if they catch the changes. If they do, your tests are good. If not, your assertions are not specific enough. 'muttest' gives you percent score of how often your tests catch the changes.

Changes in 0.3.0
  • ✨ New JSONMutationReporter writes a report conforming to the mutation-testing-elements schema, a cross-language standard shared by StrykerJS/.NET/Scala — so muttest output can be fed to any schema-compatible tooling.
  • ✨ New report() renders a self-contained, source-annotated HTML report (overall score, per-file breakdown, per-line mutant diffs, status filtering, keyboard navigation) from a JSONMutationReporter file.
  • ✨ New MultiReporter fans reporter events out to several reporters at once, e.g. a live ProgressMutationReporter alongside a JSONMutationReporter.
  • ❗️ A mutant that makes tests *error* (rather than fail an expectation) is now scored as killed, matching PIT/Stryker/mutmut. Previously it was counted as survived.
  • ❗️ Mutants with no test coverage (no matching test file under FileTestStrategy) are now reported as a separate no coverage category and excluded from the score, so untested code no longer looks like escaped mutants.
  • ✨ PackageCopyStrategy gained a symlink argument. When TRUE, only the mutated file's top-level directory is copied and everything else is symlinked to the original, avoiding a full project copy per mutant (helpful for packages with large inst//data/). Defaults to FALSE; unsafe if the test suite writes into the package's own directories.
  • 🐛 FileTestStrategy now matches test files by exact name instead of an unanchored regex, so a source file like mod.R no longer runs test-model.R and filenames with regex metacharacters are handled correctly.
  • 🐛 Added missing digest and tools to Imports.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.9 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-03
  • ERROR12 OK, 1 ERROR2026-06-20
  • OK13 OK2026-06-09
Show 3 earlier changesHide 3 earlier changes
  • WARNING12 OK, 1 WARNING2026-06-08
  • OK14 OK2026-04-16
  • ERROR11 OK, 3 ERROR2026-03-10
Advisories

none known

Documentation

In release 0.3.0
READMEYes · 992 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 0.3.0Citation fileNoWebsiteYes · pkgdown
Help pages
40
Examples that run
100%24 run in a plain check
Exported functions with examples
60%
Documented parameters
97%
Return-value docs
68%
Help pages citing references
0%

Downloads

5.9K
CRAN downloads in the past year
Rank #8,936 · ~16/day · ~489/mo
Daily download trend is not available in this view yet.
37830 days
1.1K90 days
5.9K1 year
Compare downloads with other packages →
Also on87 r2u4 autocran

Repository

27Stars
2Forks
1Open issues
1Open PRs
6Releases
118Commits
1Commit identities
mutation-testingrtestingtesting-toolstestthat
118 commits · Last activity 2026-07-21 · +3.8% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
82
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2026-07-22 · 262026-10-02 · 27
PracticesBeta

14 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/jakubsob/muttest on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Funding

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-21 · The repository has a site deploy workflow

pkgdown site last built 2026-07-21

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (3)
lintrLint workflowRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-05-04
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: CLAUDE.md
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)

Installing muttest adds 35 packages (21 with compiled code, 10.0 MB of source tarballs). Heaviest: fs 1.4 MB, jsonlite 1.0 MB, vctrs 1.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2025)
Releases (4)

Pick two releases to compare their code metrics.

  • 0.3.0Latest
    record
    2026-07-21 · current release · diff ↗ ·
    added 3 exports
    JSONMutationReporter, MultiReporter, report
  • 0.2.1
    record
    2026-06-24 · diff ↗
  • 0.2.0
    record
    2026-05-14 · diff ↗ ·
    removed 1 export
    plan
    added 25 exports
    Mutator, arithmetic_operators, boolean_literal, boolean_literals, call_name, comparison_operators, condition_mutations, delete_statement, index_decrement, index_increment, index_mutations, logical_operators, muttest_plan, na_literal, na_literals, negate_condition, numeric_decrement, numeric_increment, numeric_literals, remove_condition_negation, remove_negation, replace_return_value, string_empty, string_fill, string_literals
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0
    record
    2025-05-30
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-05-30
Total releases
4 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
135 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("muttest")
Sobolewski, J. (2026). muttest: Mutation Testing (Version 0.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.muttest

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for muttest version 0.3.0 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy