Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A discovery plugin for Nose which relies on sane structure.

Project description

Given standard test setup, will determine which tests need to run against a given diff.

For example, say you’re working in your branch called my-new-sexy-feature, which modifies the following files:


If you’re using a traditional test layout, we’ll automatically add the following rule for you:


Otherwise you can add rules using regular expression syntax in combination with the path and filename formatters.

Now if we run with the default options, nosetests --with-quickunit, it will look for tests (by default) in the following base directories:


(It does this by analyzing the diff against master, and determining which files you’ve changed are tests, including them, and which files containing test coverage in a parallel directory.)


If you want to support multiple directories for searching (let’s say you break up unittests from integration tests) you can do that as well:

–quickunit-rule=tests/{path}/test_{filename} –quickunit-rule=tests/{path}/{basename}/

Or, if you’d prefer, via setup.cfg:

quickunit-rule = tests/{path}/test_{filename}


Rules are a combination of simple formatting a regular expressions.

The following formatted variables are available within a rule:

The base path of the filename (e.g. foo/bar)
The filename excluding the path (e.g.
The filename excluding the extension (e.g. baz)

A rule is first formatted (using .format(params)) and then compiled into a regular expression on top of each changed file.

Project details

Release history Release notifications

This version
History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
quickunit-0.6.0.tar.gz (6.5 kB) Copy SHA256 hash SHA256 Source None Jul 26, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page