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

Open
jennybc opened this issue Sep 24, 2019 · 0 comments
Open

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

jennybc opened this issue Sep 24, 2019 · 0 comments
Labels

Comments

@jennybc
Copy link
Member

@jennybc 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 label Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.