Udemyintermediateen

PyTest Cookbook - Using hooks to create custom plugins

Master test management! Learn to sort, randomize, and filter tests with hooks. Build distributable plugins for flexible testing workflows.

5.0(1)
45students
4h 30m
Certificate
Craig West
Craig WestSoftware Engineer and Instructor

Course Content

PyTest Cookbook - Using hooks to create custom plugins is an intermediate-level Udemy course taught by Craig West. It runs 4h 30m, is taught in English, and includes a certificate of completion. Learners rate it 5.0 out of 5 from 1 review, with 45 students enrolled. It is a paid course, first published June 2024.

Unlock the power of PyTest hooks to customize and extend your testing workflows! This intermediate-level course dives deep into PyTest's extensibility, empowering you to modify test execution and generate custom reports.

What you'll learn:

  • Custom Test Output: Create CSV reports of executed tests, similar to the --collect-only functionality.
  • Dynamic Test Markers: Implement custom markers to dynamically manage large test suites (Project 01).
  • Test Ordering: Control test execution order by name, markers, and custom criteria (Project 02). Includes options to randomize test order.
  • Marker-Based Sorting: Prioritize test execution based on markers, running tests with "first" markers first, followed by "last" and the rest in a custom order (Project 03).
  • Dynamic Test Filtering: Filter tests based on dynamic, custom criteria (Project 04).
  • Dynamic Data Loading: Enable dynamic data loading from code, databases, or files for parameterized tests (Project 05).
  • Distributable PyTest Plugins: Package your custom hooks into .whl (wheel) files for easy sharing and deployment on PyPI (Project 02). Learn to create plugins that sort tests alphabetically (ascending or descending) using CLI flags.
  • Plugin Customization: Explore and customize existing popular PyTest plugins to gain insights and accelerate development.
  • Test Result Enhancement: Enhance console output with emojis, panels, and colors for visually appealing test results (Project 08).
  • Test Property Persistence: Save test properties for use in final reports (Project 06 & 07).

Course Highlights:

  • Hands-on Learning: No code-along; instead, we'll dissect and modify complete, well-commented templates.
  • Practical Projects: Build real-world plugins through guided projects with detailed written notes.
  • Focus on Understanding: We'll explore the "why" behind the code, leveraging documentation for deeper knowledge.
  • Ready-to-Use Plugins: Receive fully functional plugins that you can adapt to your specific needs.
  • Intermediate Level: Assumes existing Python and PyTest knowledge and familiarity with pip.

Who is this course for? This course is designed for experienced Python developers and PyTest users looking to enhance their testing capabilities and create powerful, reusable testing tools. Learn to package and distribute your custom PyTest plugins! The course provides a complete, highly commented codebase with markdown documentation, effectively creating an "ebook" resource.

$ whoami — the devs behind tutorialsearch.io

Need a web app built? Hire the team behind TutorialSearch.io

We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.

4.8
1h 42m
beginner
pluralsight
4.7(5,803)
18h 23m
intermediate
4.7(10,460)
46h 40m
all