mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
chore: test coverage
This commit is contained in:
parent
8cb444fa3f
commit
1fa71877c5
4 changed files with 6 additions and 6 deletions
4
.github/workflows/unit-test.yml
vendored
4
.github/workflows/unit-test.yml
vendored
|
|
@ -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)
|
||||
|
|
@ -6,5 +6,3 @@ COPY go.* ./
|
|||
RUN go mod download
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN go test ./... -cover
|
||||
2
Makefile
2
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue