Useful Links
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
Code Coverage
The Concept of Test Coverage
Statement Coverage
Measuring Executed Statements
Line Coverage Metrics
Branch Coverage
Measuring Decision Points
Conditional Logic Testing
Function Coverage
Function Call Tracking
Method Coverage
Path Coverage
Execution Path Analysis
Complex Flow Testing
Using coverage.py
Installing and Configuring
Running Coverage Analysis
Generating Coverage Reports
Terminal Output
HTML Reports
XML Reports
JSON Reports
Analyzing Reports to Find Untested Code
Identifying Gaps
Improving Coverage
Coverage Hotspots
Configuration Options
.coveragerc Files
Excluding Code from Coverage
Source Path Configuration
Integrating Coverage with pytest via pytest-cov
Installing the Plugin
Running Tests with Coverage
Coverage Configuration
Combining Coverage Data
Setting Coverage Thresholds in CI
Failing Builds on Low Coverage
Enforcing Minimum Coverage Levels
Coverage Trends
Coverage Best Practices
Coverage Goals and Limitations
Quality vs Quantity
Coverage-Driven Development
Previous
9. Test Automation and Continuous Integration
Go to top
Next
11. Security-Oriented Testing