Pytest extensions
Name |
Description |
|---|---|
Allow multiple fails per test (compares a lot of attributes, not fails on the first Exception) |
|
Run coverage with pytest together (before you could run coverage from pytest or vice-versa) |
|
Run flake8 against your code during pytest runs (test code + source code) |
|
Fixture: change time and data during test execution to make time-based test pass (instead of mock) |
|
Shows test failures instantly (during execution) |
|
Add additional info to test report (e.g. environment, OS, version, …) |
|
Run tests from uncommited test files in a local git repository only (changed files) |
|
Tests are reordered randomly for execution; randoms test data |
|
Define what to show during test execution ("nice little one") |
|
Wrapper for Selenium on pytest |
|
Runs test in a loop for a certain time period |
|
Replaces ‘.’ with green check marks for passing tests |
|
Suited for longer running test: kills test if it doesn’t finish in time -> decorate tests individually |
|
Run tests in parallel (for independent tests which don’t share resources, run on different machine, loop-on-fail (rerun failinig test while you’re fixing it, afterwards retest the whole suite |
|
Run Python tests in multiple environments |