Tag

parametrize

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Jun 5, 2024 · Backend Development

10 Common Uses of pytest.mark.parametrize for Efficient Testing

The article presents ten practical examples of using pytest.mark.parametrize in Python, ranging from basic parameter lists and named parameters to nested parameters, type conversion, exception testing, fixture parametrization, large data sets, custom ID generation, and combining marks, illustrating how to write concise and maintainable test code.

automationparametrizepytest
0 likes · 5 min read
10 Common Uses of pytest.mark.parametrize for Efficient Testing
Python Programming Learning Circle
Python Programming Learning Circle
Mar 25, 2022 · Fundamentals

Introduction to Pytest: Basics, Advanced Techniques, and Extensions

This article provides a comprehensive guide to Pytest, covering basic test case creation, exception handling, test classes, automatic test discovery, advanced features like parametrize, marks, fixtures, and plugin/hook development, complete with practical code examples and configuration tips.

Pluginsautomationfixtures
0 likes · 8 min read
Introduction to Pytest: Basics, Advanced Techniques, and Extensions