PLAY PODCASTS
233: pytest-check - allow multiple failures per test
Episode 233

233: pytest-check - allow multiple failures per test

Test & Code

May 2, 20258m 37s

Audio is streamed directly from the publisher (test-and-code.sfo3.cdn.digitaloceanspaces.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

pytest-check is a pytest plugin that allows multiple failures per test.


Normally, a test function will fail and stop running with the first failed assert. That's totally fine for tons of kinds of software tests. However, there are times where you'd like to check more than one thing, and you'd really like to know the results of each check, even if one of them fails.


pytest-check allows multiple failed "checks" per test function, so you can see the whole picture of what's going wrong.

Links:




Topics

pythonprogrammingsoftwaretesting