O'Reilly logo

Python Testing Cookbook by Greg L. Turnquist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required