test_this {testthis} | R Documentation |
Test this file
Description
Runs testthat tests in a single .R
file. If the file currently open in the
RStudio editor is called my_function.R
, test_this()
calls
testthat::test_file()
on ‘tests/testthat/test_my_function.R’. If
the filename of the currently open file with starts with test_
it will
call testthat::test_file()
on the current file.
Usage
test_this(...)
Arguments
... |
passed on to |
Details
This is useful in cases where you don't want to run all tests in a package
via devtools::test()
(CTRL+SHIFT+T in RStudio).
Value
NULL
(invisibly)
[Package testthis version 1.1.1 Index]