Letting Jenkins get nosy with coverage

Configure Jenkins to run a test suite using nose, generating a coverage report. This recipe assumes you have already created the network management application as described in the Building a network management application section.

Getting ready

  1. If you have already downloaded Jenkins and used it for previous recipes, look for a .jenkins folder in your home directory and delete it, to avoid unexpected variances caused by this recipe.
  2. Install Jenkins as explained in Chapter 6, Configuring Jenkins to run Python tests upon commit.
  3. Open the console to confirm that Jenkins is working.
    Getting ready
  4. Click on Manage Jenkins.

Get Python Testing Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.