Introduction

Pytest configuration is a powerful tool that allows users to customize the behavior of pytest. With configuration files, environment variables, custom fixtures, and plugins, users can modify various aspects of pytest to fit their specific needs. In this lesson, we will deep dive into pytest command-line options and configuration files.

Command-line options

Pytest provides many command-line options that can be used to customize the behavior of pytest. These options are specified when running pytest commands, like so:

Get hands-on with 1200+ tech skills courses.