Skip to content

Commit

Permalink
fix: disable mockery
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalcaliskan committed Jan 7, 2024
1 parent 29f6b04 commit 4974397
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,22 @@ vendor: tidy
go mod vendor

.PHONY: test
test: generate-mocks vendor
test: vendor
$(info starting the test for whole module...)
$(DEFAULT_GO_TEST_CMD) -coverprofile=coverage.txt || (echo an error while testing, exiting!; sh -c 'exit 1';)

#.PHONY: test-unit
#test-unit: generate-mocks vendor
#test-unit: vendor
# $(info starting the unit test for whole module...)
# $(DEFAULT_GO_TEST_CMD) -tags "unit" -coverprofile=unit_coverage.txt || (echo an error while testing, exiting!; sh -c 'exit 1';)
#
#.PHONY: test-e2e
#test-e2e: generate-mocks vendor
#test-e2e: vendor
# $(info starting the e2e test for whole module...)
# $(DEFAULT_GO_TEST_CMD) -tags "e2e" -coverprofile=e2e_coverage.txt || (echo an error while testing, exiting!; sh -c 'exit 1';)
#
#.PHONY: test-integration
#test-integration: generate-mocks vendor
#test-integration: vendor
# $(info starting the integration test for whole module...)
# $(DEFAULT_GO_TEST_CMD) -tags "integration" -coverprofile=integration_coverage.txt || (echo an error while testing, exiting!; sh -c 'exit 1';)

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@
- Create an access token on account that has **formula repository** mentioned above item and ensure that token is added as`TAP_GITHUB_TOKEN` **repository secret** on GitHub
- Uncomment **line 165** in [.github/workflows/push.yml](.github/workflows/push.yml)
- Uncomment **line 70** to **line 80** in [build/package/.goreleaser.yaml](build/package/.goreleaser.yaml)
- If you want to mock your interfaces with [mockery](https://github.com/vektra/mockery):
- Add `generate-mocks` target as a prerequisite to all uncommented targets starting with `test` in [Makefile](Makefile)

## Used Libraries and Tools
## Used Libraries
- [spf13/cobra](https://github.com/spf13/cobra)
- [rs/zerolog](https://github.com/rs/zerolog)
- [vektra/mockery](https://github.com/vektra/mockery)

## Development
This project requires below tools while developing:
Expand Down

0 comments on commit 4974397

Please sign in to comment.