allure-reportinglisted
Install: claude install-skill Izangi2714/claude-code-python-stack
# Allure Reporting Patterns
Comprehensive Allure Report integration for pytest test suites.
## When to Activate
- Setting up Allure in a pytest project
- Adding Allure metadata to test classes
- Configuring Allure in CI/CD pipelines
- Debugging test report rendering issues
- Creating custom Allure plugins or extensions
## Setup
```bash
# Install
pip install allure-pytest
# Run tests with Allure
pytest --alluredir=allure-results -v
# Generate and open report
allure serve allure-results
# Generate static report
allure generate allure-results -o allure-report --clean
```
### pyproject.toml
```toml
[tool.pytest.ini_options]
addopts = "--alluredir=allure-results --clean-alluredir"
```
## Allure Decorator Hierarchy
### Required on EVERY test class and method:
```python
import allure
@allure.epic("E-Commerce Platform") # Top-level product area
@allure.feature("Shopping Cart") # Feature being tested
class TestAddToCart(BaseTest):
@allure.story("Add single item") # User story
@allure.severity(allure.severity_level.CRITICAL) # Priority
@allure.title("User can add product to cart") # Human-readable title
@allure.description("Verify that authenticated user can add a product to their cart")
@allure.tag("cart", "positive")
@allure.link("https://jira.example.com/PROJ-123", name="PROJ-123")
def test_add_product_to_cart(self):
...
```
### Severity Levels
| Level | When to Use | Example |
|-------|-----