jandelgado / gcov2lcov Goto Github PK
View Code? Open in Web Editor NEWconvert go coverage files to lcov format
License: MIT License
convert go coverage files to lcov format
License: MIT License
Hi,
Thanks for the tool, I'm trying to use it to get coverage reports in my GH Actions.
I'm building the binary myself using Nix which builds it fine, and then runs the tests. The way it fetches the sources is not a full clone, but just a "download as zip".
This causes the tests to fail since getCoverallsSourceFileName
ends up returning an absolute path:
--- FAIL: TestParseCoverage (0.01s)
main_test.go:66:
Error Trace: main_test.go:66
Error: Not equal:
expected: "main.go"
actual : "/build/source/main.go"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-main.go
+/build/source/main.go
Test: TestParseCoverage
--- FAIL: TestConvertCoverage (0.00s)
main_test.go:102:
Error Trace: main_test.go:102
Error: Not equal:
expected: "TN:\nSF:main.go\nDA:6,1\nDA:7,1\nDA:8,1\nDA:9,0\nDA:10,2\nDA:11,2\nLF:6\nLH:5\nend_of_record\n"
actual : "TN:\nSF:/build/source/main.go\nDA:6,1\nDA:7,1\nDA:8,1\nDA:9,0\nDA:10,2\nDA:11,2\nLF:6\nLH:5\nend_of_record\n"
Diff:
--- Expected
+++ Actual
@@ -1,3 +1,3 @@
TN:
-SF:main.go
+SF:/build/source/main.go
DA:6,1
Test: TestConvertCoverage
--- FAIL: TestPathResolverFunc (0.00s)
main_test.go:110:
Error Trace: main_test.go:110
Error: Not equal:
expected: "main.go"
actual : "/build/source/main.go"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-main.go
+/build/source/main.go
Test: TestPathResolverFunc
FAIL
FAIL github.com/jandelgado/gcov2lcov 0.018s
FAIL
I can workaround this by skipping the tests run, but thought I'd report it here :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.