forked from agentscope-ai/QwenPaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.31 KB
/
Makefile
File metadata and controls
56 lines (43 loc) · 1.31 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
54
55
56
# CoPaw Test & Coverage Makefile
.PHONY: test test-unit test-contract test-integration test-channel test-channel-contract coverage-full clean
# Python path
PYTHON := python
PYTEST := python -m pytest
# Default: run all tests
test:
$(PYTEST) tests/ -v --tb=short -q
# Unit tests only
test-unit:
$(PYTEST) tests/unit/ -v --tb=short
# Contract tests (interface compliance)
test-contract:
$(PYTEST) tests/contract/ -v --tb=short
# Integration tests
test-integration:
$(PYTEST) tests/integration/ -v --tb=short
# Full coverage (all modules)
coverage-full:
$(PYTEST) tests/unit/ tests/integration/ -v \
--cov=src/qwenpaw \
--cov-report=term-missing \
--cov-report=html
# Check contract coverage for all channels
check-contracts:
$(PYTHON) scripts/check_channel_contracts.py
# Clean generated files
clean:
rm -rf htmlcov/ .pytest_cache/
rm -f coverage.xml coverage-sa.xml .coverage
# Quick check (fast feedback)
quick:
$(PYTEST) tests/unit/ -x -q --tb=line
# Channel-specific tests
test-channel:
@echo "Running Channel unit tests..."
$(PYTEST) tests/unit/channels/ -v --tb=short
test-channel-contract:
@echo "Running Channel contract tests..."
$(PYTEST) tests/contract/channels/ -v --tb=short
# BaseChannel core unit tests (optional, not enforced)
test-base-core:
$(PYTEST) tests/unit/channels/test_base_core.py -v