pytest
pytest copied to clipboard
Add feauture of parametrize declaration order #13223
This pull request closes #13223 and #5621 by introducing support for controlling the order of stacked @pytest.mark.parametrize decorators using the parametrize_order option in pytest.ini. By setting this option to "declaration", the parameter sets are applied in the order they are written in the source code, rather than the default application order (bottom to top for python decorators). The implementation includes updates to the mark handling logic. The PR also adds a test verifying the order of applied parameters, decorators and proper integration with existing pytest functionality.