mirror of https://github.com/goccy/go-json.git
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
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: simple test
|
- name: simple test
|
||||||
run: go test -v ./ -count=1
|
run: go test -v ./... -count=1
|
||||||
- name: test with GC pressure
|
- name: test with GC pressure
|
||||||
run: go test -v ./ -count=1
|
run: go test -v ./... -count=1
|
||||||
env:
|
env:
|
||||||
GOGC: 1
|
GOGC: 1
|
||||||
- name: test with race detector
|
- name: test with race detector
|
||||||
run: go test -v -race ./ -count=1
|
run: go test -v -race ./... -count=1
|
||||||
bench:
|
bench:
|
||||||
name: Benchmark
|
name: Benchmark
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -1,7 +1,7 @@
|
||||||
PKG := github.com/goccy/go-json
|
PKG := github.com/goccy/go-json
|
||||||
|
|
||||||
BIN_DIR := $(CURDIR)/bin
|
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)))
|
COVER_PKGS := $(foreach pkg,$(PKGS),$(subst $(PKG),.,$(pkg)))
|
||||||
|
|
||||||
COMMA := ,
|
COMMA := ,
|
||||||
|
@ -14,7 +14,7 @@ $(BIN_DIR):
|
||||||
|
|
||||||
.PHONY: cover
|
.PHONY: cover
|
||||||
cover:
|
cover:
|
||||||
go test -coverpkg=$(COVERPKG_OPT) -coverprofile=cover.out .
|
go test -coverpkg=$(COVERPKG_OPT) -coverprofile=cover.out ./...
|
||||||
|
|
||||||
.PHONY: cover-html
|
.PHONY: cover-html
|
||||||
cover-html: cover
|
cover-html: cover
|
||||||
|
|
Loading…
Reference in New Issue