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

How to pass --depwarn=no to Pkg.test #1764

Closed
oxinabox opened this issue Apr 11, 2020 · 3 comments
Closed

How to pass --depwarn=no to Pkg.test #1764

oxinabox opened this issue Apr 11, 2020 · 3 comments

Comments

@oxinabox
Copy link
Contributor

This case might be too niche, but that i felt the need to record so we had the possibility written down.

As of #1763 being merged
AFAICT we have no way to disable deprecation warnings during tests.

It could be that these deprecation warnings make one's tests too slow to complete, and right now there is nothing that can be done about it.

There are a number of ways we could fix this, largely around differentiating between default and no.
For example: (for sake of example using strings and excluding validation)

function Pkg.test(name; depwarn=nothing)
    if depwarn === nothing
        depwarn = (Base.JLOptions().depwarn == 2 ? "error" : "yes")
    end
    #...

That way if the user passes in depwarn="no" then it would not read the JLOptions and would just stick with "no"

@KristofferC
Copy link
Member

See the julia_args keyword in https://julialang.github.io/Pkg.jl/v1/api.html#Pkg.test.

@DilumAluthge
Copy link
Member

See the julia_args keyword in https://julialang.github.io/Pkg.jl/v1/api.html#Pkg.test.

Link is broken? It gives 404 for me.

@DilumAluthge
Copy link
Member

This link works for me:

https://julialang.github.io/Pkg.jl/v1/api/#Pkg.test

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

3 participants