Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.12 KB

4.md

File metadata and controls

41 lines (27 loc) · 1.12 KB

Step 4: Add system test coverage

In this step, you will add system tests to catinabox.

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

We have one test file:

  1. Run the existing system tests:
py.test tests/system
  1. Take a look at the supporting test code in conftest.py.

    The filename conftest.py instructs py.test to look in this file for fixture classes.

    Notice also the class HttpBaseClient, a wrapper around requests which makes calling methods on the service in tests a bit less verbose.

  2. Add more system tests to test_cattery.py until you feel the coverage is adequate. Remember that you don't need to test every path.

  3. When you are done, commit your changes and push to your pull request:

christie@paw-paw:~$ git commit -a
christie@paw-paw:~$ git push origin master

You should see the CI builds succeed.

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