pytest

pytest

Mature full-featured Python testing tool that helps you write better programs

Python has a long history with testing and different testing frameworks. Over the last decade, pytest has become the most popular, mature, and extensible Python testing framework.

JetBrains Blog

pytest vs Unittest, Which is Better?
Python, being a versatile and widely used programming language, offers several testing frameworks to facilitate the testing process. Two prominent choices are pytest and unittest, both of which come with their own sets of features and advantages.

YouTube

Do you do enough testing? pytest to the rescue!
Join us to learn how you can use pytest to find bugs, improve code quality, and even have some fun along the way.

JetBrains Blog

Three pytest features you will love
One of the most popular frameworks for Python is pytest, and it comes with several cool features. I’m going to show you three of them in this blog post.

JetBrains Blog

An Interview with Brian Okken - the pytest storyteller
Brian wears many hats including being a host for multiple Python podcasts and the author of Python Testing with pytest and has recently launched his new pytest course. Mostly, Brian spends his free time telling people they should write good, clean automated tests, specifically using pytest.

YouTube

Productive pytest with PyCharm
Testing is a major part of Python development and pytest has become the leading testing framework. Brian Okken, author of the recent book Python Testing with pytest and host of the Test and Code podcast, helps you “level up” your pytest skill.

tutorial

Visual Testing with pytest
Test writing is productive and fun with PyCharm as a visual testing tool atop pytest.

Part of tutorial

Background on Testing
Introduce testing, pytest, and how it all fits into PyCharm, along with a scenario to work on.

Part of tutorial

Debugging During Testing
When writing tests, use the PyCharm "visual debugger" to interactively poke around in the context of a problem.

Part of tutorial

Test Fixtures
Make your tests more focused by moving sample data to pytest fixtures.

Part of tutorial

Hello Test
Write a simple test and run it in PyCharm's visual test runner.

Part of tutorial

Jump to Error
Writing code means writing broken code. Click a link in a traceback to open a file on the line of the error.

Part of tutorial

Skipping Tests
During refactoring, use pytest's markers to ignore certain breaking tests.

Part of tutorial

Getting Into the TDD Flow
Setup your PyCharm project to help get into the flow of Test-Driven Development (TDD).

Part of tutorial

Project Setup
Make a PyCharm project and virtual environment with dependencies, then configure PyCharm to use pytest.

Part of tutorial

Testing Exceptions
Write tests which ensure exceptions are raised when expected.

playlist

42 Tips and Tricks
Become an IDE champ with these bite-sized tips and tricks.

playlist

Navigation Bar Intro
Move around files with keyboard, without wasting screen UI space

tip

Run Single Test
Speed up testing by focusing on one test.