Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install deps
- name: Install junit report
run: go install github.com/jstemmer/go-junit-report/v2@latest
- name: Install mockery
run: go install github.com/vektra/mockery/[email protected]
- name: Create mocks
run: mockery
- name: Run tests
run: go test -cover -bench=. -benchmem -race -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml
- name: Test Summary
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# Test binary, built with `go test -c`
*.test

# Mocks
mock_*

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

Expand Down
20 changes: 9 additions & 11 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
with-expecter: True
inpackage: True
testonly: False
issue-845-fix: True
resolve-type-alias: False
dir: "{{.InterfaceDir}}"
mockname: "Mock{{.InterfaceName}}"
outpkg: "{{.PackageName}}"
filename: "mock_{{.InterfaceName}}.go"
all: True
all: true
dir: '{{.InterfaceDir}}'
structname: Mock{{.InterfaceName}}
pkgname: '{{.SrcPackageName}}'
filename: mock_{{.InterfaceName}}.go
template: testify
template-data:
unroll-variadic: true
packages:
github.com/joshmedeski/sesh:
config:
recursive: True
recursive: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
BUILD_FLAGS="-X 'main.version=`git describe --tags --abbrev=0`'"

test:
@go test -cover -bench=. -benchmem -race ./... -coverprofile=coverage.out
@mockery && go test -cover -bench=. -benchmem -race ./... -coverprofile=coverage.out

build:
@go build -ldflags ${BUILD_FLAGS} -o $(shell go env GOPATH)/bin/sesh
91 changes: 0 additions & 91 deletions cloner/mock_Cloner.go

This file was deleted.

90 changes: 0 additions & 90 deletions configurator/mock_Configurator.go

This file was deleted.

92 changes: 0 additions & 92 deletions connector/mock_Connector.go

This file was deleted.

Loading