open_testfile: Open associated test file

Description Usage

View source: R/open_testfile.R

Description

If the currently open file in the RStudio editor is called ‘myfun.R’ this opens ‘tests/testthat/test_myfun.R’ in a new tab. This function can also be used to jump back and forth between a script and the associated test file. You can modify this behaviour by putting the comment #* @testfile anotherfile anywhere in ‘myfun.R’.

Usage

1

testthis documentation built on April 14, 2020, 6:23 p.m.