February 2022
Intermediate to advanced
274 pages
6h 28m
English
The focus of this chapter was on parametrization. And the first technique you learned was using @pytest.mark.parametrize. parametrize is just one of many builtin markers pytest provides. You’ll learn about a bunch more in the next chapter as well as how to use markers to select a subset of tests to run. You’ve used several techniques so far to run subsets of tests. You can name a specific test, class, file, or directory of tests to run them. You’ve also just learned how to use keywords to select tests. Markers are another way.
Read now
Unlock full access