LocalCoverage.jl icon indicating copy to clipboard operation
LocalCoverage.jl copied to clipboard

Failure in generating xml

Open Sov-trotter opened this issue 3 years ago • 1 comments

julia> generate_coverage("TestPg", genxml=true)
     Testing TestPg
      Status `/tmp/jl_4ydx8c/Project.toml`
  [5bb073ab] TestPg v0.1.0 `~/.julia/dev/TestPg`
  [8dfed614] Test `@stdlib/Test`
      Status `/tmp/jl_4ydx8c/Manifest.toml`
  [5bb073ab] TestPg v0.1.0 `~/.julia/dev/TestPg`
  [2a0f44e3] Base64 `@stdlib/Base64`
  [b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
  [56ddb016] Logging `@stdlib/Logging`
  [d6f4376e] Markdown `@stdlib/Markdown`
  [9a3f8284] Random `@stdlib/Random`
  [ea8e919c] SHA `@stdlib/SHA`
  [9e88b42a] Serialization `@stdlib/Serialization`
  [8dfed614] Test `@stdlib/Test`
     Testing Running tests...
Test Summary: | Pass  Total
TestPg.jl     |    2      2
     Testing TestPg tests passed 
[ Info: CoverageTools.process_folder: Searching src for .jl files...
[ Info: CoverageTools.process_file: Detecting coverage for src/TestPg.jl
[ Info: CoverageTools.process_cov: processing src/TestPg.jl.24086.cov
[ Info: CoverageTools.process_cov: processing src/TestPg.jl.26183.cov
[ Info: CoverageTools.process_cov: processing src/TestPg.jl.26261.cov
[ Info: CoverageTools.process_cov: processing src/TestPg.jl.27167.cov
[ Info: CoverageTools.process_cov: processing src/TestPg.jl.27678.cov
Reading data file coverage/lcov.info
Resolved relative source file path "src/TestPg.jl" with CWD to "/home/ezio/.julia/dev/TestPg/src/TestPg.jl".
Found 1 entries.
Found common filename prefix "/home/ezio/.julia/dev/TestPg"
Writing .css and .png files.
Generating output.
Processing file src/TestPg.jl
Writing directory view page.
Overall coverage rate:
  lines......: 42.9% (3 of 7 lines)
  functions..: no data found
[ Info: generated coverage HTML
ERROR: IOError: could not spawn setenv(`lcov_cobertura lcov.info -o cov.xml`; dir="/home/ezio/.julia/dev/TestPg/src/../coverage"): no such file or directory (ENOENT)
Stacktrace:
 [1] run
   @ ./process.jl:444 [inlined]
 [2] generate_xml(pkg::String, filename::String) (repeats 2 times)
   @ LocalCoverage ~/.julia/packages/LocalCoverage/CZlOI/src/LocalCoverage.jl:133
 [3] generate_coverage(pkg::String; genhtml::Bool, show_summary::Bool, genxml::Bool)
   @ LocalCoverage ~/.julia/packages/LocalCoverage/CZlOI/src/LocalCoverage.jl:182
 [4] top-level scope
   @ REPL[2]:1

OS: Manjaro lcov installed - version 1.15 lcov_cobertura : 2.0.1

Sov-trotter avatar Jun 03 '22 11:06 Sov-trotter

Can you please check again with current master?

tpapp avatar Aug 27 '22 14:08 tpapp