Skip to content

Commit

Permalink
feat(Makefile): Added commands for tests (#4634)
Browse files Browse the repository at this point in the history
* feat(Makefile): Added commands for tests

* adjustments

Co-authored-by: denbicloud <[email protected]>
  • Loading branch information
vktrrdk and denbicloud authored May 4, 2022
1 parent d97cd53 commit 17d17b2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 429 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ memberStorageState
voManagerState.json
*tests/environment.json
yarn.lock
test-results/
playwright-report/
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,24 @@ check_deps: ## Checks dependencies and devDependencies of package.json with a de

.PHONY: default new_environment new_node_modules new_env_and_node serve check_nodeenv clean_env clean_node_modules ng_serve

init_tests: env initialize ## (Re-)Install and initialize playwright tests

initialize:
npm init playwright@latest && \
rm tests/example.spec.ts

run_tests: env run_playwright ## Runs playwright tests

run_tests_headed: env run_playwright_headed ## Runs playwright tests headed

run_playwright_headed:
. env/bin/activate; \
npx playwright test --headed

run_playwright:
. env/bin/activate; \
npx playwright test


help:
@egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'
Loading

0 comments on commit 17d17b2

Please sign in to comment.