Skip to content

More in-depth practice of Fixtures and Parametrization for pytest, along with pytest CLI tools. Exercises also include parallel testing, stopping test suites after specified number of test failures and more.

Notifications You must be signed in to change notification settings

Fidencio-Codes/advanced_pytests

Repository files navigation

advanced_pytests

Pytest exercises that build upon the basic_pytest repository

  • conftest.py
    • file tested value declared in fixture across multiple tests in different functions
  • parametrization
    • tested functions and fixture parametrization
  • ran multiple tests in parallel, using 'pytest-xdist' plugin

Explored several options for customizing a test run:

  • stopped test suite after a certain number of test failures
    • '--maxfail=num' option
  • running test without specifying the file
  • using pytest -k flag
  • skipping and pre-failing tests using xfail and skip decorators
  • running tests based on custom marks

About

More in-depth practice of Fixtures and Parametrization for pytest, along with pytest CLI tools. Exercises also include parallel testing, stopping test suites after specified number of test failures and more.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages