mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-04-02 07:45:51 +00:00
CI: Added coverage for integration tests
This commit is contained in:
parent
c1ace1829b
commit
5a07d097da
|
@ -35,5 +35,8 @@ integration_test:
|
||||||
# go get first, so it doesn't count towards the timeout.
|
# go get first, so it doesn't count towards the timeout.
|
||||||
- go get ./...
|
- go get ./...
|
||||||
# Timeout test after 120 seconds (2 minutes)
|
# Timeout test after 120 seconds (2 minutes)
|
||||||
- timeout 120 go test -tags integration -v ./...
|
- timeout 120 go test -tags integration -v -coverprofile $COV ./...
|
||||||
|
- go tool cover -func $COV
|
||||||
|
| grep -F 'total:'
|
||||||
|
| sed -E 's|total:\s+\(.*?\)\s+([0-9]+\.[0-9]+%)|TEST_COVERAGE=\1|'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# arikawa
|
# arikawa
|
||||||
|
|
||||||
|
[](https://gitlab.com/diamondburned/arikawa/pipelines )
|
||||||
[](https://gitlab.com/diamondburned/arikawa/commits/master )
|
[](https://gitlab.com/diamondburned/arikawa/commits/master )
|
||||||
[](https://goreportcard.com/report/github.com/diamondburned/arikawa)
|
[](https://goreportcard.com/report/github.com/diamondburned/arikawa)
|
||||||
[](https://godoc.org/github.com/diamondburned/arikawa )
|
[](https://godoc.org/github.com/diamondburned/arikawa )
|
||||||
|
|
Loading…
Reference in a new issue