unittests.Rd
If testthat::testthat-package is available, run the unit tests and display the results.
unittest(ns, standalone = TRUE, reporter = "progress")
ns | namespace (package) to test |
---|---|
standalone | if |
reporter | testthat::Reporter to be used. |
Invisibly returns a data.frame with the test results
Claudia Beleites
unittest("hySpc.testthat")#> ✔ | OK F W S | Context #> ⠏ | 0 | get_test ✔ | 1 | get_test #> ⠏ | 0 | test_fun ✔ | 2 | test_fun #> ⠏ | 0 | test<- ✔ | 1 | test<- #> ⠏ | 0 | unittest #> ══ Results ═════════════════════════════════════════════════════════════════════ #> OK: 6 #> Failed: 0 #> Warnings: 0 #> Skipped: 0