Pkg.jl: Ability to pass `test_args` when using `] test MyPackage` in the REPL mode [Feature Request]

Created on 19 Feb 2020  路  3Comments  路  Source: JuliaLang/Pkg.jl

I can pass arguments to the test process by using the test_args keyword argument to Pkg.test. See https://github.com/JuliaLang/Pkg.jl/pull/1226 and https://github.com/JuliaLang/Pkg.jl/pull/1688 for more details.

Currently, there is no way to pass test_args when using the REPL mode, i.e. when doing ] test MyPackage.

It would be really convenient to be able to do so.

Most helpful comment

I think it is a good idea. I think Fredrik's proposed syntax pkg> test Example -- arg1 arg2 is good for this. We will have to adjust the REPL parsing a bit for this to work though

All 3 comments

cc: @00vareladavid

@fredrikekre suggested in https://github.com/JuliaLang/Pkg.jl/pull/1226#issuecomment-503426739 that we probably only need to add support for passing test_args in the REPL mode, since julia_args will not be used very often.

I think it is a good idea. I think Fredrik's proposed syntax pkg> test Example -- arg1 arg2 is good for this. We will have to adjust the REPL parsing a bit for this to work though

Was this page helpful?
0 / 5 - 0 ratings