testthat
Unit testing framework for R packages
testthat now ships a reporter built for the coding agent running the tests.
◆Recent moves
- 7mo ago
testthat 3.3.2
⚡ SPARKtestthat starts treating coding agents as a first-class consumer of test results, with a dedicated reporter that activates automatically inside the major agent tools. OpenTelemetry tracing lands in the same release, extending the machine-readable-output thread.
View source ↗ - 8mo ago
Fixes shinytest2 screenshot snapshots on CI
A single fix for shinytest2 screenshot snapshots failing on CI. Narrow and mechanical.
View source ↗ - 9mo ago
All failure messages rewritten; local_mock() now defunct
Every expect_ function's failure message is rewritten to state what was expected, what was received and how they differ, and input types are checked consistently. R 4.1 becomes the floor, local_mock() and with_mock() become defunct because R 4.5.0 no longer permits the technique, and several long-deprecated functions are removed. The stored body is cut at 8000 characters.
View source ↗ - 1y ago
Fixes expect_no_error() and skip() outside a test
Two bug fixes: expect_no_error(1) wrongly failing, and skip() erroring outside an active test. Small corrections.
View source ↗ - 1y ago
expect_s7_class() and new failure-testing expectations
Adds expect_s7_class() for the new S7 object system plus expect_no_failure(), expect_no_success() and expect_snapshot_failure(). Failure messages start reporting the expected condition class — an early step toward the 3.3.0 rewrite.
View source ↗ - 2y ago
R-devel format fix and a more reliable offline check
A maintenance release: a format-string fix for R-devel, local_mocked_bindings() extended to any object, and skip_if_offline() switched to Apple's connectivity host for reliability.
View source ↗