Skip to content

Commit 5c8a5a7

Browse files
committed
fix(makefile): interpolate test and fail-fast option correctly #119
1 parent 34dc79b commit 5c8a5a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ RESET := \033[0m
1010

1111
# Commands configuration
1212
COMPOSE_CMD = COMPOSE_PROJECT_NAME=$(PROJECT_NAME) docker compose -f docker-compose.dev.yml
13-
DOCKER_TEST_CMD = $(COMPOSE_CMD) exec app bundle exec bash -c "export RAILS_ENV=test && rspec --format documentation"
1413
EXEC_CMD = $(COMPOSE_CMD) exec app
1514

1615
.PHONY: help build rebuild stop start restart logs shell console format test test_fast db_reset migrate clean clean_volumes
@@ -69,10 +68,10 @@ format:
6968
$(EXEC_CMD) bundle exec rubocop --autocorrect-all
7069

7170
test:
72-
$(DOCKER_TEST_CMD)
71+
$(COMPOSE_CMD) exec app bundle exec bash -c "export RAILS_ENV=test && rspec --format documentation"
7372

7473
test_fast:
75-
$(DOCKER_TEST_CMD) --fail-fast
74+
$(COMPOSE_CMD) exec app bundle exec bash -c "export RAILS_ENV=test && rspec --format documentation --fail-fast"
7675

7776
migrate:
7877
$(EXEC_CMD) bundle exec rails db:migrate

0 commit comments

Comments
 (0)