Podchaser Logo
Podchaser Logo
Charts
65: one assert per test

65: one assert per test

Released Sunday, 17th February 2019
Good episode? Give it some love!
65: one assert per test

65: one assert per test

65: one assert per test

65: one assert per test

Sunday, 17th February 2019
Good episode? Give it some love!
Rate Episode
List

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.

Links:

Show More
Rate
List

Join Podchaser to...

  • Rate podcasts and episodes
  • Follow podcasts and creators
  • Create podcast and episode lists
  • & much more
Do you host or manage this podcast?
Claim and edit this page to your liking.
,