- Internal changes only.
- Avoid rendering vignette with usethis missing.
- Internal changes only.
- Internal changes only.
- Internal changes only.
- Merged cran-0.2.1 into main.
- Same as previous version.
- More careful querying of functions to be mocked, to avoid errors for
.onLoad()
when testing interactively (#29).
- Change maintainer e-mail address.
- More careful querying of functions to be mocked, to avoid errors for
.onLoad()
when testing interactively (#29).
- Change maintainer e-mail address.
with_mock()
now requires braces (so that error locations can be reported more accurately) and supports only one expression (#15).
- Functions declared in evaluation environments are now also replaced, with a warning (#5).
- New
local_mock()
(#6). with_mock()
works when running atestthat::test_that()
block interactively (#7).- New
get_mock_env()
to make the mocking environment explicit (#7). - Functions that start with a dot can be mocked (#3, #4).
- Add "Getting started" vignette (#22).
- Switch to rlang (#13).
- Switch to GitHub Actions (#10).
Initial CRAN release.
with_mock()
modeled closely aftertestthat::with_mock()
, can only mock in the package under test but avoids fiddling with R's internals.- The
.env
argument now can be a character, but using this argument may lead to different results thantestthat::with_mock()
.
- The