--compile=min does not output code coverage
fredrikekre opened this issue · 3 comments
fredrikekre commented
$ 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 commented
We should just add an error for this combination of options.
fredrikekre commented
Okay, is the interpreter not able to output code coverage? Is that the reason that top-level code generally is not covered either?
timholy commented
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.