forked from mirror/go-json
Merge pull request #243 from goccy/feature/move-test-to-subdirectory
Move some tests to subdirectory
This commit is contained in:
commit
ad04977db7
|
@ -24,13 +24,13 @@ jobs:
|
|||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: simple test
|
||||
run: go test -v ./ -count=1
|
||||
run: go test -v ./... -count=1
|
||||
- name: test with GC pressure
|
||||
run: go test -v ./ -count=1
|
||||
run: go test -v ./... -count=1
|
||||
env:
|
||||
GOGC: 1
|
||||
- name: test with race detector
|
||||
run: go test -v -race ./ -count=1
|
||||
run: go test -v -race ./... -count=1
|
||||
bench:
|
||||
name: Benchmark
|
||||
runs-on: ubuntu-latest
|
||||
|
|
4
Makefile
4
Makefile
|
@ -1,7 +1,7 @@
|
|||
PKG := github.com/goccy/go-json
|
||||
|
||||
BIN_DIR := $(CURDIR)/bin
|
||||
PKGS := $(shell go list ./... | grep -v internal/cmd)
|
||||
PKGS := $(shell go list ./... | grep -v internal/cmd|grep -v test)
|
||||
COVER_PKGS := $(foreach pkg,$(PKGS),$(subst $(PKG),.,$(pkg)))
|
||||
|
||||
COMMA := ,
|
||||
|
@ -14,7 +14,7 @@ $(BIN_DIR):
|
|||
|
||||
.PHONY: cover
|
||||
cover:
|
||||
go test -coverpkg=$(COVERPKG_OPT) -coverprofile=cover.out .
|
||||
go test -coverpkg=$(COVERPKG_OPT) -coverprofile=cover.out ./...
|
||||
|
||||
.PHONY: cover-html
|
||||
cover-html: cover
|
||||
|
|
Loading…
Reference in New Issue