Search

Home > Test and Code > 65: one assert per test
Podcast: Test and Code
Episode:

65: one assert per test

Category: Technology
Duration: 00:19:52
Publish Date: 2019-02-17 15:00:00
Description:

Is it ok to have more than one assert statement in a test?
I've seen articles that say no, you should never have more than one assert.
I've also seen some test code made almost unreadable due to trying to avoid more than one assert per test.

Where did this recommendation even come from? What are the reasons?
What are the downsides to both perspectives?

That's what we're going to talk about today.

Sponsored By:

Support Test & Code - Software Testing, Development, Python

Links:

Total Play: 0