Creator App Tests / PR Spam Gate (push) Skipped
Frontend Tests / PR Spam Gate (push) Skipped
NPM Format (website & console) / PR Spam Gate (push) Skipped
Pre-commit Checks / PR Spam Gate (push) Skipped
QwenPaw Creator Plugin Release / check-version (push) Canceled after 0s
QwenPaw Creator Plugin Release / upload-oss (push) Canceled after 0s
Tests / PR Spam Gate (push) Skipped
CodeQL / CodeQL (python) (push) Canceled after 0s
CodeQL / CodeQL (typescript) (push) Canceled after 0s
Creator App Tests / Creator Backend Tests (push) Canceled after 0s
Creator App Tests / Creator UI Build & Tests (push) Canceled after 0s
E2E Smoke Tests / Playwright UI Smoke (push) Canceled after 0s
Frontend Tests / Detect console changes (push) Canceled after 0s
NPM Format (website & console) / website format check (push) Canceled after 0s
NPM Format (website & console) / console format check (push) Canceled after 0s
Pre-commit Checks / Pre-commit (push) Canceled after 0s
QwenPaw Data Plugin Release / check-version (push) Canceled after 0s
Tests / Detect code changes (push) Canceled after 0s
Frontend Tests / Vitest Unit Tests (push) Canceled after 0s
Frontend Tests / Frontend Summary (push) Canceled after 0s
QwenPaw Data Plugin Release / upload-oss (push) Canceled after 0s
Tests / Maintainer Approval (push) Canceled after 0s
Tests / Unit Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - fallback (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p2 (push) Canceled after 0s
Tests / Coverage Report (push) Canceled after 0s
Tests / Test Summary (push) Canceled after 0s
71 lines
1.8 KiB
Makefile
71 lines
1.8 KiB
Makefile
# CoPaw Test & Coverage Makefile
|
|
|
|
.PHONY: test test-unit test-contract test-integration test-channel test-channel-contract coverage-full clean gen-browser-manual install-dev install-mail-mcp
|
|
|
|
# Cross-platform default (override with: make PYTHON=python3.12 <target>)
|
|
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:
|
|
@qp_test_workdir=$$(mktemp -d); \
|
|
trap 'rm -rf "$$qp_test_workdir"' EXIT; \
|
|
QWENPAW_WORKING_DIR="$$qp_test_workdir" \
|
|
$(PYTEST) tests/unit/ -x -q --tb=line
|
|
|
|
gen-browser-manual:
|
|
$(PYTHON) scripts/gen_browser_manual.py
|
|
|
|
# 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
|
|
|
|
## Install the project and bundled mail MCP for development.
|
|
install-dev:
|
|
$(PYTHON) -m pip install -e .
|
|
|
|
## Install only the standalone mail MCP package.
|
|
install-mail-mcp:
|
|
$(PYTHON) -m pip install -e packages/qwenpawmail-mcp
|