"Source Not Available" Error on Coveralls
Closed this issue · 0 comments
drsanguin commented
Describe the bug
Looks like the coverage report sent to Coveralls fails to match with the GitHub files. Here is an example on my project.
To Reproduce
- Fetch my project
- Install Tarpaulin:
cargo install cargo-tarpaulin
- Run tarpaulin on my project
Don't be shy of pushing coverage to the coveralls project. I will regenerate the token later.
cargo tarpaulin --coveralls Z53FpI2gSTvnQw64wGeSx1aX0u5M1PEV5
- Go to the repository page on coveralls to see the error
Please note that this will allow you to reproduce the issue on local. On my project, I send coverage report using this GitHub Action. Error is the same in both ways.
Expected behavior
The source on Coveralls should match the GitHub's ones.
Environment
- OS: windows
- Cargo: 1.72.0 (103a7ff2e 2023-08-15)
- tarpaulin: 0.27.2
Additional intel
- traces of
--dump-traces
parameter: tarpaulin_20240106135336.json - coverage file: coverage.json
My two cents on the rootcause
Since I work on windows, I believe the report is send to Coveralls with the Windows path separator \
and Coveralls search files in the repo with the linux one /
.
Thanks in advance for the help !