r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.37k stars 755 forks source link

Getting test coverage for the current package seems to require the package to be installed? #2535

Closed jennybc closed 9 months ago

jennybc commented 9 months ago

Observation from conf workshop:

Several folks, ~all on Windows I believe~ (~that could be a red herring~ yeah that is not important I can reproduce this), seem to need to install the current package before they can get test coverage for it.

jennybc commented 9 months ago

Error actually occurs in testthat::local_test_directory(pkg$path, pkg$package), because of local_edition(find_edition(path, package), .env = .env).

jennybc commented 9 months ago

I think it's better to resolve this in testthat. I'm going to open an issue there.