Giter Site home page Giter Site logo

gcov2lcov's People

Contributors

alexeyyakimovich avatar jandelgado avatar jlk avatar maxaudron avatar nsuthison avatar zzh8829 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gcov2lcov's Issues

Tests when ran outside of repo

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.