Skip to content

Commit 9cc7c28

Browse files
committed
[tests] update e2e tests
1 parent 61d9bf7 commit 9cc7c28

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
.PHONY: all version fmt lint test coverage benchmark air deps release clean build help
1+
.PHONY: all version fmt lint test coverage benchmark air deps gen release clean build help
22

33
BINARY_NAME := $(shell basename $(PWD))
44
GIT_VERSION := $(shell git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
55
VERSION ?= $(GIT_VERSION)
66
DOCKER_CR ?= $(shell basename $$(dirname $(PWD)))
77
DOCKER_IMAGE := ${DOCKER_CR}/$(BINARY_NAME):$(VERSION)
88

9-
all: fmt lint coverage ## Run all tests and checks
9+
all: fmt gen lint coverage ## Run all tests and checks
1010

1111
version: ## Display current version
1212
@echo "Current version: $(VERSION)"
@@ -20,6 +20,9 @@ lint: ## Run linter
2020
test: ## Run tests
2121
go test -race -shuffle=on -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out ./...
2222

23+
test-e2e: test ## Run end-to-end tests
24+
cd tests/e2e && go test -count=1 .
25+
2326
coverage: test ## Generate coverage
2427
go tool cover -func=coverage.out
2528
go tool cover -html=coverage.out -o coverage.html
@@ -38,6 +41,9 @@ air: ## Run development server
3841
deps: ## Install dependencies
3942
go mod download
4043

44+
gen: ## Generate code
45+
go generate ./...
46+
4147
release: ## Create release
4248
goreleaser release --snapshot --clean
4349

tests/e2e/messages_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func TestMessageCommandHelp(t *testing.T) {
445445
{
446446
name: "send command help",
447447
args: []string{"send", "--help"},
448-
expectHelp: true,
448+
expectHelp: false,
449449
expectUsage: true,
450450
},
451451
{

user-docs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../docs-web

0 commit comments

Comments
 (0)