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

Sad name conflict between devtools::test_file() and test that::test_file() #2125

Closed
jennybc opened this issue Sep 24, 2019 · 0 comments
Closed
Labels
feature a feature request or enhancement

Comments

@jennybc
Copy link
Member

jennybc commented Sep 24, 2019

It's easy for testthat::test_file() to mask devtools::test_file() and I generally want the latter, because file = find_active_file(), i.e. it can determine which test file I mean, if I follow the naming convention.

I had this problem because I attached testthat in ~/.Rprofile, after devtools. But even if I remove that, the problem still recurs because load_all() essentially does the same.

Using devtools' addin is one sure way to get devtools::test_file().

Could the devtools version be renamed or aliased to something that designs this problem away? test_this() perhaps?

@jimhester jimhester added the feature a feature request or enhancement label Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants