Skip to main content

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:

src/foo/bar/__init__.py
src/foo/bar/baz.py
src/foo/biz.py

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

tests/src/foo/bar/*
tests/src/foo/biz/*

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

Config

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-prefix=tests/unit/ --quickunit-prefix=tests/integration/

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

quickunit-prefix = tests/unit
                   tests/integration

Or, via setup.cfg:

quickunit-json = -

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-quickunit-0.5.2.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file nose-quickunit-0.5.2.tar.gz.

File metadata

File hashes

Hashes for nose-quickunit-0.5.2.tar.gz
Algorithm Hash digest
SHA256 7403b89c68cb18f82f799d2a00f8aa17a46209cce4f33e0a20e7bae7bb61ec0d
MD5 c23b6b6c753b7ce57f26e41ab05d7a59
BLAKE2b-256 444a76303fde8361f241375e41300e14e99160bb247cbabd900257250854f359

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