Merge pull request #243 from goccy/feature/move-test-to-subdirectory

Move some tests to subdirectory
This commit is contained in:
Masaaki Goshima 2021-06-06 19:45:03 +09:00 committed by GitHub
commit ad04977db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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