Skip to content
New issue

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

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

Already on GitHub? Sign in 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 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.

jimhester added a commit that referenced this issue Apr 6, 2018
This allows you to have tight iteration when editing a single R or test
file (#1755)
@jimhester jimhester closed this in b69b0b8 Apr 6, 2018
jimhester added a commit that referenced this issue Apr 6, 2018
jimhester added a commit that referenced this issue Apr 6, 2018
jimhester added a commit that referenced this issue Apr 9, 2018
@lock
Copy link

@lock 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 added 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 added a commit to HughParsonage/devtools that referenced this issue Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant