Skip to content

Commit 63f44e7

Browse files
committed
rules changed
1 parent 18fd87c commit 63f44e7

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

Makefile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ help:
3838
@echo " pre-commit hooks| ❌ | ❌ | ✅"
3939
@echo ""
4040
@echo "$(GREEN)Testing:$(NC)"
41-
@echo " make test Run unit + integration tests (default)"
41+
@echo " make test Run unit + integration tests (default, no e2e)"
4242
@echo " make test-fast Run unit tests only (fastest, ~5 sec)"
4343
@echo " make test-unit Run unit tests with verbose output"
4444
@echo " make test-integration Run integration tests"
45-
@echo " make test-e2e Run E2E tests (requires AWS credentials)"
46-
@echo " make test-all Run ALL tests including E2E"
45+
@echo " make test-e2e Run E2E tests (AWS_PROFILE=china)"
46+
@echo " make test-all Run ALL tests including E2E (AWS_PROFILE=china)"
4747
@echo " make test-coverage Run tests with HTML coverage report"
4848
@echo " make test-manual Run manual test scenarios (~24 min)"
4949
@echo ""
@@ -69,8 +69,8 @@ help:
6969
@echo ""
7070
@echo "$(YELLOW)Examples:$(NC)"
7171
@echo " make install-dev && make test-fast"
72-
@echo " make test-coverage"
73-
@echo " AWS_PROFILE=china make test-e2e"
72+
@echo " make test-all # Runs all tests with AWS_PROFILE=china"
73+
@echo " make test-e2e # Runs E2E tests with AWS_PROFILE=china"
7474
@echo " make deploy-verify && make deploy-install"
7575

7676
# ==================== Setup ====================
@@ -107,12 +107,12 @@ install-dev-tools:
107107

108108
test:
109109
@echo "$(BLUE)Running unit + integration tests...$(NC)"
110-
pytest tests/unit tests/integration -v
110+
pytest tests/unit tests/integration -v -m "not e2e"
111111
@echo "$(GREEN)✓ Tests complete$(NC)"
112112

113113
test-fast:
114114
@echo "$(BLUE)Running unit tests (fast)...$(NC)"
115-
pytest tests/unit -v
115+
pytest tests/unit -v -m "not e2e"
116116
@echo "$(GREEN)✓ Unit tests complete$(NC)"
117117

118118
test-unit:
@@ -127,18 +127,19 @@ test-integration:
127127

128128
test-e2e:
129129
@echo "$(BLUE)Running E2E tests (requires AWS credentials)...$(NC)"
130-
@echo "$(YELLOW)Ensure AWS_PROFILE is set or credentials are configured$(NC)"
131-
pytest tests/e2e -m e2e -v
130+
@echo "$(YELLOW)Using AWS_PROFILE=china (default for this project)$(NC)"
131+
AWS_PROFILE=china pytest tests/e2e -m e2e -v
132132
@echo "$(GREEN)✓ E2E tests complete$(NC)"
133133

134134
test-all:
135135
@echo "$(BLUE)Running ALL tests (unit + integration + E2E)...$(NC)"
136-
pytest tests/ -v
136+
@echo "$(YELLOW)Using AWS_PROFILE=china (default for this project)$(NC)"
137+
AWS_PROFILE=china pytest tests/unit tests/integration tests/e2e -v
137138
@echo "$(GREEN)✓ All tests complete$(NC)"
138139

139140
test-coverage:
140141
@echo "$(BLUE)Running tests with coverage report...$(NC)"
141-
pytest tests/ --cov=src --cov-report=html --cov-report=term-missing --cov-report=term
142+
pytest tests/unit tests/integration tests/e2e --cov=src --cov-report=html --cov-report=term-missing --cov-report=term
142143
@echo "$(GREEN)✓ Coverage report generated$(NC)"
143144
@echo "$(YELLOW)View HTML report: open htmlcov/index.html$(NC)"
144145

pytest.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ python_files = test_*.py
1414
python_classes = Test*
1515
python_functions = test_*
1616

17-
# By default, run unit and integration tests only (NOT e2e)
18-
# This makes local development fast
17+
# Default options for all test runs
1918
addopts =
2019
-v
2120
--strict-markers
2221
--tb=short
23-
-m "not e2e and not real_aws"
2422

2523
# Console output
2624
console_output_style = progress

0 commit comments

Comments
 (0)