chore: test coverage

This commit is contained in:
Ruidy 2022-01-05 11:11:13 -04:00
parent 8cb444fa3f
commit 1fa71877c5
4 changed files with 6 additions and 6 deletions

View file

@ -23,4 +23,6 @@ jobs:
dep ensure
fi
- name: Test
run: go test -v ./...
run: go test -v ./...
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)

View file

@ -6,5 +6,3 @@ COPY go.* ./
RUN go mod download
COPY . ./
RUN go test ./... -cover

View file

@ -1,4 +1,4 @@
TEST = "go test ./... -v -coverpkg=./... -coverprofile cp.out; go tool cover -func cp.out; rm cp.out"
TEST = "go test ./... -coverpkg=./... -coverprofile cp.out -covermode=atomic; go tool cover -func cp.out; rm cp.out"
build:
docker build . -t underscore:latest

View file

@ -74,10 +74,10 @@ And that's it.
## Tests
Building the docker image will run the tests automatically. Otherwise, you can simply run:
To run the unit tests, you can simply run:
```shell
go test ./...
make test
```
## Functions