in Python by
Q:
How Conventions for Test Discovery works in Python?

▼ Show 1 Answer

0 votes
by

In order to discover all the tests in test modules, you have to follow below conventions while writing the tests.

All files containing tests must be either modules or packages. In case of packages, they must be importable from top directory of the project.

By default, test discovery always searches for modules or packages starting with test pattern in their names. test pattern is case insensitive.

By default, the test discovery always starts from working directory and it is recursive.

Python
Learn More with Madanswer

Related questions

0 votes
asked Jul 16, 2020 in Python by GeorgeBell
...