/pytest-demo

A hands-on pytest tutorial

Apache License 2.0Apache-2.0

pytest-demo

This repository contains a set of examples to help you learn pytest through hands-on practice. Each example includes a brief description of the concept being demonstrated and instructions for running the example.

Requirements

To run the examples in this repository, you will need to have the following software installed on your machine:

  • Python 3
  • pytest

To install the required dependencies, run the following command:

pip install -r requirements.txt

Running the examples

To run an example, navigate to the directory containing the example you want to run and enter the following command:

pytest <EXAMPLE_NAME>.py

Being <EXAMPLE_NAME>.py the name of example to be executed.

Reference

  • The pytest documentation is a great resource for learning more about pytest and its features.
  • The pytest GitHub repository is a good place to find additional examples and contribute to the development of pytest.