1+ #! /bin/bash
2+ # tools_coverage.sh - Run comprehensive coverage for all tool modules
3+
4+ set -e
5+
6+ echo " Running comprehensive tools coverage..."
7+
8+ # Clean any existing coverage data
9+ coverage erase
10+
11+ # Test runner tool
12+ echo " === Running test_runner.py tests ==="
13+ python -m pytest tests/tools/test_test_runner_tool.py -v --cov=src.cli_code.tools.test_runner
14+
15+ # Task complete tool
16+ echo " === Running task_complete_tool.py tests ==="
17+ python -m pytest tests/tools/test_task_complete_tool.py -v --cov=src.cli_code.tools.task_complete_tool --cov-append
18+
19+ # File tools
20+ echo " === Running file_tools.py tests ==="
21+ python -m pytest test_dir/test_file_tools.py -v --cov=src.cli_code.tools.file_tools --cov-append
22+
23+ # Directory tools
24+ echo " === Running directory_tools.py tests ==="
25+ python -m pytest test_dir/test_directory_tools.py -v --cov=src.cli_code.tools.directory_tools --cov-append
26+
27+ # Quality tools
28+ echo " === Running quality_tools.py tests ==="
29+ python -m pytest test_dir/test_quality_tools.py -v --cov=src.cli_code.tools.quality_tools --cov-append
30+
31+ # Summarizer tool
32+ echo " === Running summarizer_tool.py tests ==="
33+ python -m pytest test_dir/test_summarizer_tool.py -v --cov=src.cli_code.tools.summarizer_tool --cov-append
34+
35+ # Tree tool
36+ echo " === Running tree_tool.py tests ==="
37+ python -m pytest test_dir/test_tree_tool.py test_dir/test_tree_tool_edge_cases.py -v --cov=src.cli_code.tools.tree_tool --cov-append
38+
39+ # System tools
40+ echo " === Running system_tools.py tests ==="
41+ python -m pytest test_dir/test_tools_basic.py -v --cov=src.cli_code.tools.system_tools --cov-append
42+
43+ # Base tool class
44+ echo " === Running base.py tests ==="
45+ python -m pytest test_dir/test_tools_init_coverage.py -v --cov=src.cli_code.tools.base --cov-append
46+
47+ # Generate comprehensive report
48+ echo " === Generating comprehensive coverage report ==="
49+ coverage report --include=" src/cli_code/tools/*.py"
50+ coverage html
51+
52+ echo " Tools coverage complete. Check coverage_html/index.html for detailed report."
0 commit comments