Skip to main content

Find slow test setUp/tearDown

Project description

Nose can report test execution time in its various output formats but it doesn’t include the setUp or tearDown time, which can be substantial.


  1. pip install nose-congestion
  2. nosetests --with-congestion


After all of the tests complete, a simple table will be printed:

Location                                       Total    setUp tearDown
module.tests.FastTests                         7.187    1.659    0.000
module.tests.SlowTests                         0.047    0.002    0.000

  Total  Location
  0.104  module.tests.SlowTests.test_method
  0.009  module.tests.FastTests.test_method


  • nose
  • Python 2.6+, Python 3.3+

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nose-congestion, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size nose-congestion-0.0.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page