-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
46 lines (37 loc) · 978 Bytes
/
makefile
File metadata and controls
46 lines (37 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Variables
APP_DIR := app
NODE_MODULES := node_modules
# Commands
NPM := npm
NPX := npx
PLAYWRIGHT := $(NPX) playwright
build-app:
@echo "Installing the app"
@sudo cd $(APP_DIR) && $(NPM) install --force
install-playwright:
@echo "Installing playwright"
@$(NPM) install
@echo "Installing playwright browsers"
@$(PLAYWRIGHT) install
run-app:
@echo "Launching the app"
@cd $(APP_DIR) && $(NPM) run start
install-all:
@echo "Installing all dependencies"
@$(MAKE) install-playwright
@$(MAKE) build-app
run-tests:
@echo "Running the tests"
@$(NPM) run test:e2e
# Add target to run tests in debug mode
run-tests-debug:
@echo "Running the tests in debug mode"
@$(NPM) run test:e2e:debug
# Add target to run tests in a specific browser (e.g., chromium)
run-tests-chromium:
@echo "Running tests in chromium"
@$(PLAYWRIGHT) test --browser chromium
# Add target to generate test report
generate-report:
@echo "Generating test report"
@$(PLAYWRIGHT) show-report