Skip to content

Commit ad04977

Browse files
authored
Merge pull request #243 from goccy/feature/move-test-to-subdirectory
Move some tests to subdirectory
2 parents b05a0c3 + f10809f commit ad04977

27 files changed

+5
-5
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
- name: checkout
2525
uses: actions/checkout@v2
2626
- name: simple test
27-
run: go test -v ./ -count=1
27+
run: go test -v ./... -count=1
2828
- name: test with GC pressure
29-
run: go test -v ./ -count=1
29+
run: go test -v ./... -count=1
3030
env:
3131
GOGC: 1
3232
- name: test with race detector
33-
run: go test -v -race ./ -count=1
33+
run: go test -v -race ./... -count=1
3434
bench:
3535
name: Benchmark
3636
runs-on: ubuntu-latest

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PKG := github.com/goccy/go-json
22

33
BIN_DIR := $(CURDIR)/bin
4-
PKGS := $(shell go list ./... | grep -v internal/cmd)
4+
PKGS := $(shell go list ./... | grep -v internal/cmd|grep -v test)
55
COVER_PKGS := $(foreach pkg,$(PKGS),$(subst $(PKG),.,$(pkg)))
66

77
COMMA := ,
@@ -14,7 +14,7 @@ $(BIN_DIR):
1414

1515
.PHONY: cover
1616
cover:
17-
go test -coverpkg=$(COVERPKG_OPT) -coverprofile=cover.out .
17+
go test -coverpkg=$(COVERPKG_OPT) -coverprofile=cover.out ./...
1818

1919
.PHONY: cover-html
2020
cover-html: cover
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)