Skip to content

Commit 00f3af4

Browse files
Release 0.2.0
1 parent 95b00b8 commit 00f3af4

4 files changed

Lines changed: 31 additions & 12 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: mutator
22
Title: Mutation Testing
3-
Version: 0.1.1.9000
3+
Version: 0.2.0
44
Authors@R: c(
55
person("Pierre", "Donat-Bouillud", email = "pierre.donat.bouillud@fit.cvut.cz", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0003-4455-1130")),
66
person("Assanali", "Amandykov", email = "amandass@fit.cvut.cz", role = c("aut", "cph")))

NEWS.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
1+
# mutator 0.2.0
2+
3+
- Added first-class `tinytest` support. A package with an `inst/tinytest`
4+
directory is now auto-detected and its mutants are run in-process with
5+
`pkgload::load_all()` and `tinytest::run_test_dir()`, without an install per
6+
mutant, including coverage-guided test selection.
7+
- Added a `strategy` argument to `mutate_package()` to override test-framework
8+
auto-detection. Accepted values are `"auto"` (the default), `"testthat"`,
9+
`"tinytest"`, `"tinytest-installed"`, and `"installed"`.
10+
- Added a `tinytest-installed` strategy that installs each mutant and runs
11+
`tinytest::test_package()`. It is a fallback for packages whose in-process
12+
load diverges from an installed copy and unlike the generic
13+
installed-tests fallback it still supports coverage-guided selection.
14+
- Reworked the README and configuration vignette, documenting how the test
15+
strategy is selected and when to override it.
16+
- Fixed the `per_file` coverage backend to forward the package's
17+
`tests/testthat.R` harness arguments (notably any `filter`) to
18+
`testthat::test_dir()`, matching the `record_tests` backend.
19+
120
# mutator 0.1.1
221

3-
* Fixed coverage-guided baseline runs for packages with native code by compiling
22+
- Fixed coverage-guided baseline runs for packages with native code by compiling
423
native sources before mutant execution.
5-
* Fixed the `record_tests` coverage backend so it forwards the selected CRAN
24+
- Fixed the `record_tests` coverage backend so it forwards the selected CRAN
625
mode consistently.
7-
* Updated the reusable GitHub Actions workflow to install `imputesrcref` from
26+
- Updated the reusable GitHub Actions workflow to install `imputesrcref` from
827
its default branch, replacing the removed development-branch reference.
9-
* Expanded mutation-system coverage across execution modes and raised mutator's
28+
- Expanded mutation-system coverage across execution modes and raised mutator's
1029
own test coverage above 90% without adding slow integration tests.
1130

1231
# mutator 0.1.0
1332

14-
* Initial CRAN release candidate.
33+
- Initial CRAN release candidate.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ name: mutation-testing
131131

132132
jobs:
133133
mutation:
134-
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.1.1
134+
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.2.0
135135
with:
136136
target-margin: "0.10" # sample to +/-10 percentage points
137137
fail-under: "75" # fail CI below a 75% mutation score
138138
```
139139
140-
Pin to a released tag such as `@v0.1.1`; the workflow is versioned with the
140+
Pin to a released tag such as `@v0.2.0`; the workflow is versioned with the
141141
mutator package, so the tag matches the package version. Set `deploy-badge: true`
142142
(with `contents: write` permission) to publish a shields.io badge. See the
143143
[Continuous integration vignette](https://prl-prg.github.io/mutator/articles/continuous-integration.html)

vignettes/continuous-integration.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ name: mutation-testing
4040

4141
jobs:
4242
mutation:
43-
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.1.1
43+
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.2.0
4444
with:
4545
target-margin: "0.10"
4646
```
4747
48-
Pin to a released tag such as `@v0.1.1`. The reusable workflow lives in the
48+
Pin to a released tag such as `@v0.2.0`. The reusable workflow lives in the
4949
mutator package repository and is versioned with the package, so the tag you
5050
pin matches a mutator release. Bump the tag in your caller when you want to move
5151
to a newer release. You can also pin to a branch (for example `@main`) to track
@@ -83,7 +83,7 @@ non-zero, which blocks the pull request:
8383
```yaml
8484
jobs:
8585
mutation:
86-
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.1.1
86+
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.2.0
8787
with:
8888
fail-under: "75"
8989
target-margin: "0.05"
@@ -117,7 +117,7 @@ jobs:
117117
mutation:
118118
permissions:
119119
contents: write
120-
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.1.1
120+
uses: PRL-PRG/mutator/.github/workflows/mutation-testing.yaml@v0.2.0
121121
with:
122122
deploy-badge: true
123123
```

0 commit comments

Comments
 (0)