The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
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[@]metanet.ch.
This package provides some addons for testthat used by hyperSpec and hySpc.*.
Online documentation is available via pkgdown.
hySpc.testthat allows to attach unit tests to functions:
f <- function(x) 2*x
test(f) <- function(){
context("testing f")
test_that("foo", expect (bar))
}
to keep test code and functional code close to each other.
Functions test_fun()
and unittest()
execute
unit tests that are thus attached to functions.
See tests/testthat/test_attached.R
for including these tests into the usual test suit executed by
devtools::test()
.
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.