O'Reilly logo
  • Chris Kang thinks this is interesting:

The -k option enables you to pass in an expression to run tests that have certain names specified by the expression as a substring of the test name. You can use and, or, and not in your expression to create complex expressions.


Cover of Python Testing with pytest


Note "-k" option.