11# ######################################################################
22# Coverage.jl
33# Take Julia test coverage results and bundle them up in JSONs
4- # https://github.com/IainNZ /Coverage.jl
4+ # https://github.com/JuliaCI /Coverage.jl
55# ######################################################################
66
77using Coverage, Base. Test, Compat
@@ -24,7 +24,7 @@ using Compat.String
2424@test Coverage. iscovfile (" /somedir/test.jl.8392.cov" , " /somedir/test.jl" )
2525@test ! Coverage. iscovfile (" /otherdir/test.jl.cov" , " /somedir/test.jl" )
2626
27- cd (Pkg . dir ( " Coverage " )) do
27+ cd (dirname ( @__DIR__ )) do
2828 datadir = joinpath (" test" , " data" )
2929 # Process a saved set of coverage data...
3030 r = process_file (joinpath (datadir," Coverage.jl" ))
@@ -44,7 +44,7 @@ cd(Pkg.dir("Coverage")) do
4444 # need to preserve the pre-baked coverage file Coverage.jl.cov
4545 clean_file (srcname)
4646 cmdstr = " include(\" $srcname \" ); using Base.Test; @test f2(2) == 4"
47- run (` julia --code-coverage=user -e $cmdstr ` )
47+ run (` $JULIA_HOME / julia --code-coverage=user -e $cmdstr ` )
4848 r = process_file (srcname, datadir)
4949 # The next one is the correct one, but julia & JuliaParser don't insert a line number after the 1-line @doc -> test
5050 # See https://github.com/JuliaLang/julia/issues/9663 (when this is fixed, can uncomment the next line on julia 0.4)
0 commit comments