Skip to main content

Nose plugin for recording test results to a database

Project description

Introduction

nosedbreport exposes a single plugin that can front various backend databases to store the result of a nose test execution. Having the results of your tests, whether they are part of a continuous integration system or not, allows you to ask interesting questions about your project such as

  • What were the test suites that ran in the last five minutes

  • What is the average time to run test case ‘x’

  • What is the standard time to failure for test suite ‘y’

  • and so on…

These questions also allow you to build reporting, and monitoring tools based on automated functional tests that you may be running against your development, staging or production systems, such as heartbeat or availability pages.

Installation travis-ci

  • with easy_install

    sudo easy_install nosedbreport
  • with pip

    sudo pip install nosedbreport
  • from source (git repository):

    hg clone http://github.com/alisaifee/nosedbreport
    cd nosedbreport
    python setup.py build
    sudo python setup.py install

Usage

  • The most basic use case is to report the results of a test run into a mysql database, which can be achieved by adding the following options to your nose execution:

    nosetests --dbreport-dbtype=mysql --dbreport-host=your.mysql.com\
     --dbreport-username=ali --dbreport-password=some-pass --dbreport-db=nosereport
  • To create the appropriate schema in your mysql database:

    nosetests --dbreport-dbtype=mysql --dbreport-host=your.mysql.com\
     --dbreport-username=root  --dbreport-password=your-root-pass\
     --dbreport-db=nosereport --dbreport-create-schema
  • For detailed usage refer to read the docs

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

nosedbreport-0.2.9.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

nosedbreport-0.2.9-py2.7.egg (20.8 kB view details)

Uploaded Source

File details

Details for the file nosedbreport-0.2.9.tar.gz.

File metadata

File hashes

Hashes for nosedbreport-0.2.9.tar.gz
Algorithm Hash digest
SHA256 e9e7167687c16c60cf9eaa94f385dbdcf20a8b1e5f99e4ae5c6d645682e97db1
MD5 e82a17989698f073844feffb5019ea61
BLAKE2b-256 e048a43a49c37e10be234ed60fde46d484442258f33a93cc802939a4f70c4ea4

See more details on using hashes here.

File details

Details for the file nosedbreport-0.2.9-py2.7.egg.

File metadata

File hashes

Hashes for nosedbreport-0.2.9-py2.7.egg
Algorithm Hash digest
SHA256 80f355293a586a4ce6bf6f1b4393a78c4543ab19113ca56a8392b82a40feef07
MD5 0a1c40c9264fab189a7ecf54de708c16
BLAKE2b-256 7ce4f1983b429bc60531caf2716e9b7323801bc6927c7677b4f8da145fb8081b

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