Now we will take a look at command-line options that will make you more productive in your daily work. As stated at the beginning of the chapter, this is not a complete list of all of the command-line features; just the ones that you will use (and love) the most.
Useful command-line options
Keyword expressions: -k
Often, you don't exactly remember the full path or name of a test that you want to execute. At other times, many tests in your suite follow a similar pattern and you want to execute all of them because you just refactored a sensitive area of the code.
By using the -k <EXPRESSION> flag (from keyword expression), you can run tests whose item id loosely matches the given expression:
λ pytest -k "...