tests/testthat/_snaps/active.md

find_active_file() gives useful error if no RStudio

Code
  find_active_file()
Condition
  Error:
  ! Argument `file` is missing, with no default

fails if can't find tests

Code
  find_test_file("R/foo.blah")
Condition
  Error:
  ! Don't know how to find tests associated with the active file 'foo.blah'
Code
  find_test_file("R/foo.R")
Condition
  Error:
  ! No test files found


r-lib/devtools documentation built on Feb. 17, 2024, 5:32 p.m.