testdat
Data Unit Testing for R
Unit testing for datasets, built on testthat and now bending to its next release.
◆Recent moves
- 9mo ago
Expectations rebuilt on new_expectation() for testthat 3.3.0
A compatibility change contributed upstream, moving expectation construction onto new_expectation() ahead of testthat 3.3.0. Nothing user-facing changes; it is the cost of building a package on someone else's testing framework.
View source ↗ - 9mo ago
expect_base() errors on a missing variable instead of passing
A one-line note describing a real trap: testing a variable that does not exist used to pass. In a data validation suite a silent pass is worse than a failure, because it reports coverage that was never there.
View source ↗ - 2y ago
Grouped data frames ungrouped before testing
Groups are now stripped from grouped data frames retrieved by get_testdata(), since grouping breaks several expectations, plus a fix for an upcoming R-devel change. Defensive maintenance.
View source ↗ - 3y ago
Failure messages name the failing variable; expect_depends() added
The most user-visible release in the feed. Failure messages now identify which of several tested variables failed rather than reporting an aggregate count, which is the difference between a usable and a frustrating suite when checking many columns at once. expect_depends() adds functional dependency testing, and expect_allany() is soft deprecated as the shared back end no longer fits.
View source ↗ - 4y ago
Test data pipe lets expectations sit inline in a chain
The %E>% pipe lets expectations be placed directly in a data manipulation chain rather than wrapped in with_testdata() calls. Syntactic, but it changes where checks live: inline with the transformation they guard rather than collected elsewhere.
View source ↗ - 4y ago
CRAN release moves variable selection to tidyselect
⚡ SPARKThe release that put testdat on CRAN and, in the same breath, broke every existing variable selection. Adopting tidyselect aligned the package with the rest of the tidyverse and collapsed the distinction between single and multi-variable expectations.
View source ↗