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

Comments

Projects
None yet
1 participant
@hadley
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.

jimhester added a commit that referenced this issue Apr 6, 2018

Add test_file function
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

This comment has been minimized.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.