<p dir="auto">The <a href="https://github.com/JuliaLang/julia/blob/4aeb2d499686beab0e66978e8719357387dc1b25/base/pkg/pkg.jl#L71">docs</a> for <code class="notranslate">Pkg.dir()</code> say <em>"In particular, <code class="notranslate">Pkg.dir(pkg)</code> returns the path to the package <code class="notranslate">pkg</code>."</em> However <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tkelman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tkelman">@tkelman</a> points out in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="235504856" data-permission-text="Title is private" data-url="https://github.com/EcoJulia/Phylo.jl/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/EcoJulia/Phylo.jl/pull/2/hovercard" href="https://github.com/EcoJulia/Phylo.jl/pull/2">EcoJulia/Phylo.jl#2</a> that this doesn't happen when <code class="notranslate">LOAD_PATH</code> is set. As a result there's no way of finding the path to a file in an installed package (from outside that package), which is extremely desirable if, for instance, you want to install a resource with a package for reference. If this is right, this seems like a bug as it conflicts with the documented behaviour...</p>
<p dir="auto">it works fine if the package is in .julia/v0.x, but if it is somewhere else then it claims there is no <code class="notranslate">test/runtests.jl</code> even if my <code class="notranslate">LOAD_PATH</code> is set such that i can <code class="notranslate">using</code> it.  i know that the recommended dev cycle is to keep packages in .julia, but would it make sense to make Pkg.test() work otherwise?</p>