Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 780 Bytes

2.md

File metadata and controls

28 lines (19 loc) · 780 Bytes

Step 2: Adding unit test coverage

In this step, you will run the existing unit tests and add some of your own.

  1. Look at the existing unit tests:
christie@paw-paw:~/catinabox$ ls tests/unit

We have two test files:

  1. Run the existing unit tests:
py.test tests/unit
  1. Add more unit tests to both test_pantry.py and test_cattery.py until you are confident that they are well covered.

    Verify your tests are working by intentionally breaking them (i.e. change the logic in Cattery and Pantry to be incorrect and ensure your tests fail).

  2. If you get stuck, take a peek at [the solution](TODO: git tag).