9
9
@echo " Development:"
10
10
@echo " install Install dependencies with uv"
11
11
@echo " dev Install in development mode"
12
- @echo " test Run test suite"
12
+ @echo " test Run full test suite"
13
+ @echo " test-quick Run quick smoke tests"
14
+ @echo " test-dom Run DOM manipulation tests"
15
+ @echo " test-console Run console and JavaScript tests"
16
+ @echo " test-network Run network monitoring tests"
13
17
@echo " lint Run linting checks"
14
18
@echo " format Format code with ruff"
15
19
@echo " check Run all checks (lint + type check + test)"
@@ -26,7 +30,7 @@ install:
26
30
uv sync
27
31
28
32
dev : install
29
- uv run mcp install devtools_server .py -n " Chrome DevTools MCP" --with-editable .
33
+ uv run mcp install server .py -n " Chrome DevTools MCP" --with-editable .
30
34
31
35
# Code quality
32
36
lint :
@@ -40,10 +44,19 @@ typecheck:
40
44
41
45
# Testing
42
46
test :
43
- uv run python test_devtools_server.py
47
+ uv run python -m pytest test_devtools_server.py -v
44
48
45
- test-individual :
46
- uv run python run_tests.py start_and_connect
49
+ test-quick :
50
+ uv run python -m pytest test_devtools_server.py::test_chrome_detection test_devtools_server.py::test_javascript_execution -v
51
+
52
+ test-dom :
53
+ uv run python -m pytest test_devtools_server.py -k " test_get_document or test_query_selector or test_element" -v
54
+
55
+ test-console :
56
+ uv run python -m pytest test_devtools_server.py -k " test_javascript or test_console" -v
57
+
58
+ test-network :
59
+ uv run python -m pytest test_devtools_server.py -k " test_network" -v
47
60
48
61
# All checks
49
62
check : lint typecheck test
@@ -74,7 +87,7 @@ install-tools:
74
87
75
88
# Development server (for testing)
76
89
dev-server :
77
- uv run python devtools_server .py
90
+ uv run python server .py
78
91
79
92
# Version management
80
93
version-patch :
0 commit comments