Control test execution with skip, fail, and xfail.
Skip the current test:
Explicitly fail a test:
Mark test as expected to fail:
Skip if module is not available:
Parameters:
| Parameter | Type | Description |
|-----------|------|-------------|
| modname | str | Module name to import |
modname
str
| minversion | str | Minimum version required |
minversion
| reason | str | Custom skip reason |
reason
| Class | Description |
|-------|-------------|
| Skipped | Raised when test is skipped |
Skipped
| Failed | Raised when test fails explicitly |
Failed
| XFailed | Raised for expected failures |
XFailed