Главная
Study mode:
on
1
Intro
2
Brian Okken
3
Value of Tests
4
Parametrize vs Parameterize
5
Something to Test
6
without Parametrization
7
Moving to one test (don't do this)
8
Function Parametrization
9
Parameters from a named list
10
Parameters from a function
11
Parameters from a generator
12
Parameters from a file
13
Run the last failing test case
14
Run test cases with 60 degree angles
15
Run an individual test case
16
Fixture Parametrization
17
Object parameters get non-helpful names
18
An ids function
19
Custom ids function
20
pytest_generate_tests()
21
metafunc
22
test.param
23
indirect parameter
24
indirect example
25
More test cases
26
Review
27
Combining Techniques
28
Resources
Description:
Explore pytest parametrization techniques to enhance testing effectiveness in this 21-minute PyCon US talk by Brian K Okken. Dive into three parametrization methods, test case identifiers, and generators through code examples. Start with a simple test and progress to advanced concepts like function parametrization, fixture parametrization, and custom ids functions. Learn to leverage parameters from named lists, functions, generators, and files. Discover how to run specific test cases, handle object parameters, and combine various techniques. Access slides, code, and additional resources on GitHub to apply these powerful pytest features and streamline your test writing and maintenance process.

Multiply Your Testing Effectiveness with Parameterized Testing

PyCon US
Add to list