Technology
Pytest
Pytest is the leading Python testing framework: it scales from simple unit tests to complex functional testing with minimal boilerplate.
Pytest is a powerful, feature-rich Python testing framework, simplifying test creation and execution. It significantly reduces boilerplate compared to the built-in `unittest` module. Key features include automatic test discovery, powerful assert rewriting that provides detailed failure output (no need for `self.assert*` calls), and a modular fixture system for managing test dependencies and state. Use the `@pytest.mark.parametrize` decorator to run a single test function with multiple input/output scenarios, drastically cutting down on redundant code. The framework’s extensive plugin ecosystem further extends its capabilities, supporting everything from parallel test execution (`pytest-xdist`) to code coverage reporting (`pytest-cov`).
Related technologies
Recent Talks & Demos
Showing 1-12 of 12