mirror of https://github.com/dirtbags/moth.git
Merge branch 'add_coverage_report_number' into 'main'
Add overall report coverage number See merge request devs/moth!179
This commit is contained in:
commit
73933447a9
|
@ -14,6 +14,8 @@ test:
|
||||||
- go test -coverprofile=coverage.txt -covermode=atomic -race ./...
|
- go test -coverprofile=coverage.txt -covermode=atomic -race ./...
|
||||||
- go get github.com/boumenot/gocover-cobertura
|
- go get github.com/boumenot/gocover-cobertura
|
||||||
- go run github.com/boumenot/gocover-cobertura < coverage.txt > coverage.xml
|
- go run github.com/boumenot/gocover-cobertura < coverage.txt > coverage.xml
|
||||||
|
- go tool cover -func coverage.txt
|
||||||
|
coverage: /\(statements\)(?:\s+)?(\d+(?:\.\d+)?%)/
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
coverage_report:
|
coverage_report:
|
||||||
|
|
Loading…
Reference in New Issue