JuliaCI / JuliaCI/LocalCoverage.jl

Failure in generating xml

Open
#29 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
79
Forks
26
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in LocalCoverage.jl, especially src/LocalCoverage.jl around generate_xml at line 133 and generate_coverage at line 182. Reproduce the failure with generate_coverage("TestPg", genxml=true) and inspect how the lcov_cobertura command is launched. Done means XML generation handles the reported missing executable appropriately or documents the required setup, with the relevant behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.