UsefulLinks
Computer Science
Cybersecurity
Python Testing
1. Fundamentals of Software Testing
2. Python Testing Environment Setup
3. The unittest Framework
4. The pytest Framework
5. Test Design and Best Practices
6. Mocking, Patching, and Test Doubles
7. Advanced Testing Techniques
8. Testing Specific Application Types
9. Test Automation and Continuous Integration
10. Code Coverage
11. Security-Oriented Testing
12. Test Data Management
13. Debugging and Troubleshooting Tests
14. Performance and Optimization
10.
Code Coverage
10.1.
The Concept of Test Coverage
10.1.1.
Statement Coverage
10.1.1.1.
Measuring Executed Statements
10.1.1.2.
Line Coverage Metrics
10.1.2.
Branch Coverage
10.1.2.1.
Measuring Decision Points
10.1.2.2.
Conditional Logic Testing
10.1.3.
Function Coverage
10.1.3.1.
Function Call Tracking
10.1.3.2.
Method Coverage
10.1.4.
Path Coverage
10.1.4.1.
Execution Path Analysis
10.1.4.2.
Complex Flow Testing
10.2.
Using coverage.py
10.2.1.
Installing and Configuring
10.2.2.
Running Coverage Analysis
10.2.3.
Generating Coverage Reports
10.2.3.1.
Terminal Output
10.2.3.2.
HTML Reports
10.2.3.3.
XML Reports
10.2.3.4.
JSON Reports
10.2.4.
Analyzing Reports to Find Untested Code
10.2.4.1.
Identifying Gaps
10.2.4.2.
Improving Coverage
10.2.4.3.
Coverage Hotspots
10.2.5.
Configuration Options
10.2.5.1.
.coveragerc Files
10.2.5.2.
Excluding Code from Coverage
10.2.5.3.
Source Path Configuration
10.3.
Integrating Coverage with pytest via pytest-cov
10.3.1.
Installing the Plugin
10.3.2.
Running Tests with Coverage
10.3.3.
Coverage Configuration
10.3.4.
Combining Coverage Data
10.4.
Setting Coverage Thresholds in CI
10.4.1.
Failing Builds on Low Coverage
10.4.2.
Enforcing Minimum Coverage Levels
10.4.3.
Coverage Trends
10.5.
Coverage Best Practices
10.5.1.
Coverage Goals and Limitations
10.5.2.
Quality vs Quantity
10.5.3.
Coverage-Driven Development
Previous
9. Test Automation and Continuous Integration
Go to top
Next
11. Security-Oriented Testing