Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

test_file helper #1755

Closed
hadley opened this issue Apr 5, 2018 · 1 comment
Closed

test_file helper #1755

hadley opened this issue Apr 5, 2018 · 1 comment

Comments

@hadley
Copy link
Member

hadley commented Apr 5, 2018

It would be very useful to have a function that helps you test a single file, allowing you to iterate more rapidly when working on a single a file. The function should take a file path as an argument - it should be a path to a file in R/ or tests/testthat. If omitted, it should default to using the RStudio active file.

It will need to:

  • Save all open files
  • Re-load the code
  • Execute the single test file

Ideally it would be paired with a test_coverage() helper.

@lock
Copy link

lock bot commented Oct 3, 2018

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Oct 3, 2018
HughParsonage pushed a commit to HughParsonage/devtools that referenced this issue Jul 2, 2019
This allows you to have tight iteration when editing a single R or test
file.

Fixes r-lib#1755
HughParsonage pushed a commit to HughParsonage/devtools that referenced this issue Jul 2, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant