Is it possible to post coverage for multiple packages to Coveralls?

前端 未结 6 632
故里飘歌
故里飘歌 2021-02-04 10:02

I want to track test coverage on a go project using Coveralls, the instructions for the integration reference using https://github.com/mattn/goveralls

cd $GOPA         


        
6条回答
  •  隐瞒了意图╮
    2021-02-04 10:39

    Here is a pure GO solution:

    I create a library that may help, https://github.com/bluesuncorp/overalls

    all it does is recursively go through each directory ( aka each package ), run go test and produce coverprofiles, then merges all profiles into a single one at the root of the project directory called overalls.coverprofile

    then you can use a tool like https://github.com/mattn/goveralls to send it to coveralls.io

    hope everyone likes

提交回复
热议问题