Skip to content

Commit

Permalink
test: separate specification tests from race conditions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Nov 22, 2023
1 parent 4b4106c commit ccb494a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
run: go get -t -v ./...
- name: Go vet
run: go vet ./...
- name: Run all tests
- name: Run spec tests
run: go test -v ./... -tags='spec'
- name: Run all tests with race detection
timeout-minutes: 1
run: go test -race -covermode atomic -coverprofile=profile.cov -v ./...
run: go test -race -covermode atomic -coverprofile=profile.cov -v ./... -tags='!spec'
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ test: check
go test ./...

test-race: check
go test -race ./...
go test -race ./... -tags='!spec'
2 changes: 2 additions & 0 deletions spec_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build spec

package unleash

import (
Expand Down

0 comments on commit ccb494a

Please sign in to comment.