How-To Guides
Practical solutions for specific tasks and problems
These guides provide focused, step-by-step instructions for accomplishing specific tasks with FailExtract. Each guide assumes you have basic familiarity with FailExtract and focuses on solving a particular problem.
- How to Install FailExtract
- Quick Installation (Most Users)
- Adding Optional Features
- Environment-Specific Installation
- Installation Verification
- Python Version Requirements
- Upgrading FailExtract
- Development Installation
- Troubleshooting Installation
- Installation in Different Environments
- What’s NOT Available
- Next Steps
- Success Checklist
- How to Generate Reports
- Basic Report Generation
- Report Formats and Use Cases
- Customizing Report Content
- Multi-Format Report Generation
- Automated Report Generation
- Report Content and Structure
- Report Management and Cleanup
- Error Handling for Report Generation
- Integration with External Tools
- Next Steps
- Key Report Generation Takeaways
- How to Optimize Performance
- Understanding Performance Modes
- Configuring for Development
- Configuring for CI/CD
- Configuring for Production
- Memory Optimization Strategies
- Performance Measurement and Benchmarking
- Optimizing for Large Test Suites
- Environment-Specific Configuration
- Performance Monitoring and Alerting
- Best Practices Summary
- Next Steps
- Key Performance Optimization Takeaways
- How to Troubleshoot Issues
- How to Set Up CI/CD for Documentation
- How to Set Up Automated PyPI Releases
Quick Reference
Installation and Setup - How to Install FailExtract - Get FailExtract installed and working
Report Generation - How to Generate Reports - Create reports in different formats for various use cases
Performance and Optimization - How to Optimize Performance - Configure for development, CI/CD, and production environments
Problem Solving - How to Troubleshoot Issues - Diagnose and fix common issues
Development and CI/CD - How to Set Up CI/CD for Documentation - Configure automated documentation builds and deployment - How to Set Up Automated PyPI Releases - Configure automated PyPI package releases
Task-Oriented Solutions
These guides solve specific problems you might encounter:
Installation Tasks
Installing FailExtract with different feature sets
Setting up in virtual environments, Docker, and CI/CD
Verifying installation and troubleshooting import issues
Upgrading between versions
Report Generation Tasks
Generating reports in multiple formats
Automating report generation in CI/CD pipelines
Integrating reports with external tools and services
Handling large datasets and memory management
Performance Tasks
Configuring for minimal overhead in production
Optimizing for CI/CD environments
Managing memory usage in long-running test suites
Measuring and monitoring performance impact
Troubleshooting Tasks
Diagnosing import and installation problems
Fixing capture and extraction issues
Resolving report generation failures
Handling environment-specific problems
Development and CI/CD Tasks
Setting up automated documentation builds
Configuring GitHub Pages deployment
Creating release-triggered workflows
Setting up automated PyPI package releases
Managing PyPI tokens and security
Monitoring and maintaining CI/CD pipelines
How to Use These Guides
Problem-First Approach Each guide starts with a specific problem or task you want to accomplish.
Step-by-Step Solutions Clear, actionable instructions that you can follow immediately.
Error Handling Robust solutions that handle edge cases and provide fallback options.
Real-World Context Examples and scenarios from actual usage patterns.
When to Use How-To Guides vs. Tutorials
Use How-To Guides when: - You have a specific problem to solve - You’re already familiar with FailExtract basics - You need a quick solution to accomplish a task - You’re troubleshooting an issue
Use Tutorials when: - You’re learning FailExtract for the first time - You want to understand concepts step-by-step - You’re exploring FailExtract’s capabilities - You want guided, hands-on learning
Quick Solutions
Most Common Tasks:
# Quick installation
pip install failextract
# Generate JSON report
failextract report --format json --output failures.json
# Install with all features
pip install failextract[formatters,cli]
# Basic usage pattern
from failextract import extract_on_failure, FailureExtractor, OutputConfig
@extract_on_failure
def test_example():
assert False, "Test failure"
# Generate report
extractor = FailureExtractor()
config = OutputConfig("failures.json")
extractor.save_report(config)
Get Started
Choose the guide that matches your current need:
New to FailExtract? Start with How to Install FailExtract
Need reports? Go to How to Generate Reports
Performance issues? Check How to Optimize Performance
Something not working? Try How to Troubleshoot Issues
Setting up CI/CD? See How to Set Up CI/CD for Documentation
Need PyPI releases? Go to How to Set Up Automated PyPI Releases
Next: Choose the guide that solves your specific problem