Pytest-incremental is a pytest plugin designed to accelerate test execution by identifying and running only the tests affected by recent code changes. It achieves this by analyzing project structure and file modifications between test runs, reordering test execution and de-selecting unaffected tests. The project is currently at version 0.6.0, but it is officially deprecated and no longer actively maintained.
pip install pytest-incrementalNo compatibility data collected yet for this library.
The plugin is activated via a command-line flag or `pytest.ini` configuration. No direct Python imports are typically made in test files for the plugin itself. You primarily interact with it through the `pytest` CLI.
Consider migrating to 'rut' or an alternative incremental testing tool like 'pytest-testmon'.
Minimize dynamic import patterns and monkey-patching where possible in modules with test dependencies. Manually specify watched paths using `--inc-path` if dependencies are in non-standard locations.
Refactor your codebase to eliminate cyclic dependencies for better code maintainability and optimal performance with pytest-incremental.
Test thoroughly with your specific Python/pytest versions. Be aware that unaddressed compatibility issues may arise.
Install the plugin: `pip install pytest-incremental`
Review your codebase for dynamic import patterns or cyclic dependencies. Ensure your pytest and pytest-incremental versions are compatible. Consider enabling verbose output (`pytest --inc -v`) to understand what the plugin is doing. If issues persist, consider using the recommended replacement 'rut' or 'pytest-testmon'.
No resource links recorded.