65: one assert per test - podcast episode cover

65: one assert per test

Feb 17, 201920 minSeason 1Ep. 65
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode 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:

Links:

★ Support this podcast on Patreon ★
For the best experience, listen in Metacast app for iOS or Android
Open in Metacast
65: one assert per test | Test & Code podcast - Listen or read transcript on Metacast