Skip to content

Commit de65565

Browse files
committed
CLI-15: Add marker-based test targets to Makefile
- Add test-parser, test-executor, test-design targets - Add test-fast to exclude slow tests - Add test-components for component test suites - Enable selective test execution by category
1 parent a3b5c4c commit de65565

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Makefile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CLI Patterns Makefile
22
# Development and testing automation
33

4-
.PHONY: help install test test-unit test-integration test-coverage lint type-check format clean all
4+
.PHONY: help install test test-unit test-integration test-coverage test-parser test-executor test-design test-fast test-components lint type-check format clean all
55

66
# Default target
77
help:
@@ -12,6 +12,11 @@ help:
1212
@echo "make test-unit - Run unit tests only"
1313
@echo "make test-integration - Run integration tests only"
1414
@echo "make test-coverage - Run tests with coverage report"
15+
@echo "make test-parser - Run parser component tests"
16+
@echo "make test-executor - Run executor/execution component tests"
17+
@echo "make test-design - Run design system tests"
18+
@echo "make test-fast - Run non-slow tests only"
19+
@echo "make test-components - Run all component tests (parser, executor, design)"
1520
@echo "make lint - Run ruff linter"
1621
@echo "make type-check - Run mypy type checking"
1722
@echo "make format - Format code with black"
@@ -85,6 +90,22 @@ pre-commit:
8590
pre-commit-install:
8691
pre-commit install
8792

93+
# Run tests by marker
94+
test-parser:
95+
PYTHONPATH=src python3 -m pytest tests/ -m parser -v
96+
97+
test-executor:
98+
PYTHONPATH=src python3 -m pytest tests/ -m executor -v
99+
100+
test-design:
101+
PYTHONPATH=src python3 -m pytest tests/ -m design -v
102+
103+
test-fast:
104+
PYTHONPATH=src python3 -m pytest tests/ -m "not slow" -v
105+
106+
test-components:
107+
PYTHONPATH=src python3 -m pytest tests/ -m "parser or executor or design" -v
108+
88109
# Show test summary
89110
summary:
90111
@echo "Test Summary"

0 commit comments

Comments
 (0)