The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Patrick can build test names as {glue}-formatted strings, e.g.
with_parameters_test_that(
"col2hex works for color {color_name}",
{expect_equal(col2hex(color_name), color_hex)
},color_name = c("red", "blue", "black"),
color_hex = c("#FF0000", "#0000FF", "#000000")
)
This also works for supplying such a formatted string as
.test_name
.
To disable this behavior, use
.interpret_glue = FALSE
.
Thanks @chiricom!
Breaking changes:
.test_name
,
instead of the implicit test_name
variable from before.
This is now an explicit argument for the function
with_parameters_test_that()
, and the leading dot should
help distinguish this from values passed as cases.Update patrick
for testthat 3e.
with_parameters_test_that()
to use data,
dots, detailsR/patrick-package.R
.testthat
.Welcome to patrick
, a package for parameterizing tests
within testthat. Check out the README.md file to learn more about this
package.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.