Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

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

  • with easy_install

    sudo easy_install nosedbreport
    
  • with pip

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

    hg clone http://hg.indydevs.org/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
    

Recent activity RSS feed for nosedbreport

Ali-Akber  Saifee

Commits by Ali-Akber Saifee were pushed to ali/nosedbreport

89a502a - add indices to sqlite db & use utc for times
fc3a3f4 - bug fix: wrong suite name in use when multiple suites are being run
c0f713d - - 0.2.1
3d01f60 - return short description if all else fails
88e267e - minor bug fix to output clean error message upon trying to create schema with invalid mysql/sqlite connection objects
c79fe19 - README not README.rst
47b72c8 - moved readme to its place
4e94988 - cli-option cleanup/docs
04b2765 - Added tag 0.1 for changeset a6e47585ee6c
c0f713d - - 0.2.1
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.