Test & Code cover image

Test & Code

39: Thorough software testing for critical features

Mar 29, 2018
19:00

Complete and exhaustive testing is not possible. Nor would it be fun, or maintainable, or a good use of your time.

However, some functionality is important enough to make sure the test behavior coverage is thorough enough to have high confidence in it's quality.

In this episode, we discuss 3 techniques that can be combined to quickly generate test cases. We then talk about how to implement them efficiently in pytest.

The techniques covered are:

  • equivalence partitioning
  • boundary value analysis
  • decision tables

We discuss how to use these to generate test cases for a new list filter functionality in the cards application.

The resulting tests:

  • 1 UI test to make sure the options are able to be passed in correctly.
  • 1 small parametrized test function with 16 single line parameter sets representing the different test cases.

Sponsored By:

Links:

★ Support this podcast on Patreon ★

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode