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

--compile=min does not output code coverage #37059

Open
fredrikekre opened this issue Aug 15, 2020 · 3 comments
Open

--compile=min does not output code coverage #37059

fredrikekre opened this issue Aug 15, 2020 · 3 comments

Comments

@fredrikekre
Copy link
Member

$ ls
test.jl

$ cat test.jl 
function f()
    println("hello, world")
end
f()

$ julia --code-coverage=user --compile=min test.jl
hello, world

$ ls
test.jl

$ julia --code-coverage=user test.jl                                 
hello, world

$ ls
test.jl  test.jl.11153.cov
@JeffBezanson
Copy link
Member

We should just add an error for this combination of options.

@fredrikekre
Copy link
Member Author

Okay, is the interpreter not able to output code coverage? Is that the reason that top-level code generally is not covered either?

@timholy
Copy link
Member

timholy commented Aug 6, 2021

We should just add an error for this combination of options.

Maybe a warning? A package that sets

Base.Experimental.@compiler_options compile=min optimize=1

in its source code, but still runs standard CI files, would then start throwing an error. Seems pretty breaking.

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

No branches or pull requests

4 participants