-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (36 loc) · 1.69 KB
/
Copy pathMakefile
File metadata and controls
53 lines (36 loc) · 1.69 KB
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
47
48
49
50
51
52
53
.PHONY: default all install test test-smoke test-headed test-debug test-ui test-ru test-en report lint validate verify flake-hunt clean help
default: install lint test ## Install, lint, run tests (the conventional default)
all: install lint test report ## Full pipeline including report
install: ## Install npm deps + Playwright browsers (with system deps)
npm ci
npx playwright install --with-deps chromium firefox webkit
test: ## Run the full Playwright suite
npx playwright test
test-smoke: ## Run only smoke tests (tag @smoke)
npx playwright test --grep @smoke
test-headed: ## Run tests in headed mode (visible browser)
npx playwright test --headed
test-debug: ## Run tests with PWDEBUG=1 (Playwright Inspector)
PWDEBUG=1 npx playwright test
test-ui: ## Run tests in UI Mode (interactive runner)
npx playwright test --ui
test-ru: ## Run only RU-locale tests (tag @ru)
npx playwright test --grep @ru
test-en: ## Run only EN-locale tests (tag @en)
npx playwright test --grep @en
report: ## Open the latest HTML report
npx playwright show-report
lint: ## Run eslint + tsc + prettier checks
npm run lint
npm run typecheck
npm run format:check
validate: ## Enforce the layered architecture (layout + factory + fixture + spec gates)
npm run validate
verify: ## Repo health check (tooling, files, kit, no leaked secrets)
npm run verify
flake-hunt: ## Run the suite 5x in a row to surface flaky tests
npx playwright test --repeat-each=5
clean: ## Remove report/results/artifacts
rm -rf playwright-report test-results .playwright-mcp .tsbuildinfo
help: ## Show this help
@grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'