update mock and add register sensor test

This commit is contained in:
2025-10-10 02:23:49 +02:00
parent f5583b3cd5
commit 8e33f95cb4
3 changed files with 106 additions and 13 deletions
+2 -1
View File
@@ -28,7 +28,7 @@ migrateup:
.PHONY: mock
# Mock database
mock:
go run go.uber.org/mock/mockgen@latest -package mock -destination internal/domains/sensors/mock/querier.go $(MOD_NAME)/internal/domains/sensors Repository
go run go.uber.org/mock/mockgen@latest -package sensors -destination internal/domains/sensors/repository_mock.go $(MOD_NAME)/internal/domains/sensors Repository
.PHONY: test
# Run tests
@@ -48,6 +48,7 @@ run-prod:
.PHONY: lazy-start
lazy-start:
# Install dependencies, tools, dockerize containers, run tests and run app.
go mod download
make dockerize-db
make dockerize-nats
make run-prod