V0.7 Pkg: Passing arguments to test


#1

Hi,

Is there any way to pass arguments to test scripts when called via the Pkg REPL?
From command line, I’m able to do

$ julia ./test/runtests.jl <args>

But is it possible to do similar from REPL, like

(v0.7) pkg> test <PackageName> <args>

?
From julia REPL, I’m able to do

ARGS = [ <args> ]; include( joinpath(Pkg.dir(<PackageName>),"test","runtests.jl") )

Even though this works now, there is a warning displayed:

 Warning: Pkg.dir is only kept for legacy CI script reasons
└ @ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:433

So what is the “right way” to pass arguments to test script in v0.7?


#2

Can you file an issue on the Pkg.jl repo?


#3

Thanks.
I have opened a new issue at https://github.com/JuliaLang/Pkg.jl/issues/518