Skip to content

Commit f4626f9

Browse files
committed
[TestsE2E] - add optional filter to the makefile command
1 parent 676ba73 commit f4626f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ phpunit: ## Run php unit tests, pass the parameter "p=" to launch tests on a spe
144144
jest: ## Run jest unit tests
145145
@$(DOCKER_COMP) exec pwa yarn test
146146

147-
e2e: ## Run e2e tests
148-
@$(DOCKER_COMP) exec e2e yarn test
147+
e2e: ## Run e2e tests or pass the parameter "f=" to filters tests, example: make e2e f=login
148+
@$(eval f ?=)
149+
@$(DOCKER_COMP) exec e2e yarn test $(f)
149150

150151
jest_update: ## Run jest unit tests
151152
@$(DOCKER_COMP) exec pwa yarn test:update

0 commit comments

Comments
 (0)