<p dir="auto">I have a package like repository <code class="notranslate">path_to_A/A.jl</code></p>
<p dir="auto"><code class="notranslate">push!(LOAD_PATH, "path_to_A")</code> would make <code class="notranslate">A</code> available for <code class="notranslate">using</code></p>
<p dir="auto">However, <code class="notranslate">Pkg.test("A")</code> to run the test doesn't work.</p>
<p dir="auto">Currently I have to do:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Change pwd to the correct folder.
cd(&quot;path_to_A/A.jl/test&quot;)
include(&quot;runtests.jl&quot;)"><pre class="notranslate"><code class="notranslate"># Change pwd to the correct folder.
cd("path_to_A/A.jl/test")
include("runtests.jl")
</code></pre></div>
<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>