Skip to content

Commit febd13b

Browse files
committed
Add mocks target to makefile
Signed-off-by: Lorenzo <[email protected]>
1 parent 6a4a4e6 commit febd13b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
test:
22
docker compose -f docker-compose.test.yaml up toxiproxy integration_test --abort-on-container-exit
3+
4+
mocks:
5+
docker run --rm -v $(PWD):/src -w /src vektra/mockery:v2.53.3 --config .mockery.yaml
6+
7+
.PHONY: test mocks

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,10 @@ When adding new interfaces and needing to generate mocks, you should:
662662

663663
2. Run the following command:
664664
```sh
665-
mockery
665+
mockery
666666
```
667667

668+
Alternatively, you may generate the mocks via make target:
669+
```sh
670+
make mocks
671+
```

0 commit comments

Comments
 (0)