Creating Test Suites

Let's explore how test suites can be created.

We'll cover the following

A test suite is just a collection of test cases, test suites or both. Most of the time, when we call unittest.main(), it will do the right thing and gather all the module’s test cases for us before executing them. But sometimes we want to be the one in control. In that circumstance, we can use the TestSuite class.

Example of TestSuite class

Here’s an example of how we might use it:

Get hands-on with 1200+ tech skills courses.