Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pkg test with arguments for testing packages #518

Closed
v-i-s-h opened this issue Jul 21, 2018 · 1 comment · Fixed by #1226
Closed

Pkg test with arguments for testing packages #518

v-i-s-h opened this issue Jul 21, 2018 · 1 comment · Fixed by #1226
Labels

Comments

@v-i-s-h
Copy link

v-i-s-h commented Jul 21, 2018

Pkg REPL in Julia-0.7.0 allows only to pass the Package name as argument. But there is no way to give an argument (or a list of arguments) to the test script from Pkg REPL.

From bash, we can do (from the corresponding package directory)

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

Even though it is possible to give it through julia REPL, like this

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

but produces the following warning:

 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
@DilumAluthge
Copy link
Member

See pull request #1226, which attempts to fix this issue.

bors bot added a commit that referenced this issue Jul 26, 2019
1226: [RFC] Allow Pkg.test to pass command-line arguments to test/runtests.jl r=fredrikekre a=DilumAluthge

Fixes #518 
Fixes #981 
Fixes #1241   



Co-authored-by: Dilum Aluthge <[email protected]>
@bors bors bot closed this as completed in #1226 Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants