Skip to main content

A Nose plugin for dropping the test runner into pdb when it encounters an error.

Project description

The nose-pudb plugin provides integration between the Nose testing framework and the pudb console-based visual debugger. Instead of collecting and displaying test results, the test runner can drop into the debugger on errors and/or test failures.

This is similar to Nose’s built-in Debug plugin which uses the pdb debugger from the Python standard library.

Overview

The plugin provides --pudb and --pudb-failures options. The --pudb option will drop the test runner into pudb when it encounters an error. To drop into pudb on failure, use --pudb-failures.

A script introduced in the pudb wiki provides a simple way to drop into pudb instead of pdb when running nose tests. However, when using that script, pudb fails to show information about the exception object along with the traceback when hitting the ‘e’ key.

This plugin passes the exception type and value to pudb’s post_mortem() function so that they are displayed with the traceback.

Install

You can get nose-pudb with easy_install

$ easy_install nose-pudb

Or you can clone the source using git from http://github.com/akaihola/nose-pudb.git and install it with

$ python setup.py develop

Usage

To run nose tests and drop into pudb on errors, type:

$ nosetests --pudb

To drop into pudb on failures, type:

$ nosetests --pudb-failures

Contributing

Please submit bugs and patches. All contributors will be acknowledged. Thanks!

License

The plugin is released under the GNU Lesser General Public license (LGPL). See the file LICENSE for details.

Changelog

  • 0.1

    • Initial release

  • 0.1.1

    • License added

    • Documentation fixes

    • Setup script fixes

  • 0.1.2

    • Setup script fix: include readme and license in the distribution

To Do

  • nothing at this point

Project details


Download files

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

Source Distribution

nose-pudb-0.1.2.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file nose-pudb-0.1.2.tar.gz.

File metadata

  • Download URL: nose-pudb-0.1.2.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nose-pudb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 52a34484b398b6f08c29b069786226e1498d28a1a2e562cc1e63da058fdc1c26
MD5 19effa7b1f5973747735e45943de3207
BLAKE2b-256 3068785771cbe96a1a99bd992134993b4729191e85b5a7ae93e9a67b14664595

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page