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

Is it possible to use this tool with Pkg.test() rather than julia runtests.jl? #9

Closed
tomasaschan opened this issue Jun 23, 2014 · 4 comments

Comments

@tomasaschan
Copy link

In an attempt to configure the soon-to-be released Contour package to be correctly handled by Pkg, I've added a couple of REQUIRE files to the repo: JuliaGeometry/Contour.jl#6

However, since installation of testing dependencies rely on using Pkg.test("Contour") to run the test suite, I can't just do julia --code-coverage test/runtests.jl as before to run the tests - on the other hand, julia --code-coverage -e 'Pkg.test("Contour") doesn't seem to generate any coverage files in the folder where I execute it (at least not on my local machine).

Is there a way to somehow tell Pkg.test() that I want coverage analysis - or, if not, then maybe to tell it that "I'm about to run the tests manually, could you please resolve testing dependencies"?

Ping @StefanKarpinski

@IainNZ
Copy link
Contributor

IainNZ commented Jun 24, 2014

Interesting... the core of the issue is that this code
https://github.com/JuliaLang/julia/blob/master/base/pkg/entry.jl#L669-L694
basically runs Julia as a subprocess - essentially doing julia test/runtests.jl itself. I think the cleanest solution is to add an optional argument. I'll submit a PR to do so.

@IainNZ
Copy link
Contributor

IainNZ commented Jun 24, 2014

JuliaLang/julia#7393

@IainNZ
Copy link
Contributor

IainNZ commented Jun 24, 2014

JuliaLang/julia#6191 by @burrowsa added this feature

@IainNZ
Copy link
Contributor

IainNZ commented Aug 11, 2014

Closed by JuliaLang/julia#7615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants