Get startedGet started for free

Creating the test directory

To get started writing tests for your code, the first thing you need to do is create a test directory inside your package. Matching the structure of this directory to that of your source code directory makes it easier for users and automated tools to examine and run these tests.

This exercise is part of the course

Developing Python Packages

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise