Skip to content

Commit

Permalink
Add test-build rule to Makefile
Browse files Browse the repository at this point in the history
A new rule 'test-build' has been added to the Makefile which includes tasks for removing docker data, building docker, bringing docker down and running tests. This provides a simplified command to perform all essential tasks required for testing.
  • Loading branch information
PiotrFerenc committed Apr 17, 2024
1 parent 9c05592 commit 94319b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ docker-rebuild:
$(MAKE) docker-down
$(MAKE) docker-build
$(MAKE) docker-up
test-build:
sudo rm -rf ./docker/data
$(MAKE) docker-build
$(MAKE) docker-down
$(MAKE) test
test:
go test tests/main_test.go

0 comments on commit 94319b4

Please sign in to comment.