RaenonX / Madison-Metro-Sim

Madison Metro System simulator. (UW Madison 2020 Fall CS 638 Project)
2 stars 2 forks source link

About creating test cases #10

Open RaenonX opened 3 years ago

RaenonX commented 3 years ago

We use pytest for this project. Here is its documentation.

Rules of thumb

Every test related things will be prefixed with test_ for auto test discovery.

For the module to be a module (and to be discovered), you need to have an __init__.py inside the module folder, regardless if it's an empty file (and it usually will be empty, except that you want to inject something).