Skip to content

Commit 426af0a

Browse files
committed
End-to-end tests with Bats-Core.
1 parent a1643c3 commit 426af0a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ APP = path-helper
44
VERSION ?= $(shell cat ./version)
55
# build directory
66
BUILD_DIR ?= build
7+
# end-to-end directory
8+
E2E_DIR ?= test/e2e
79
# build flags
810
BUILD_FLAGS ?= -v -a -ldflags=-s
911
# gopath copy from environment
@@ -28,11 +30,17 @@ clean:
2830
clean-vendor:
2931
rm -rf ./vendor > /dev/null
3032

31-
test: test-unit
33+
test: test-unit test-e2e
3234

3335
test-unit:
3436
go test -failfast -race -coverprofile=coverage.txt -covermode=atomic -cover -v pkg/$(APP)/*
3537

38+
test-e2e:
39+
bats --recursive $(E2E_DIR)
40+
41+
hack-install-bats:
42+
hack/install-bats.sh
43+
3644
codecov:
3745
mkdir .ci || true
3846
curl -s -o .ci/codecov.sh https://codecov.io/bash

0 commit comments

Comments
 (0)