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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nose-quickunit-0.5.3.tar.gz
.
File metadata
- Download URL: nose-quickunit-0.5.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23efd422752703eea9341c0993a16aac943b9549a8ab9884a158522b67220f00 |
|
MD5 | b07137c0998b843e83cd486dad379525 |
|
BLAKE2b-256 | c16c87fe0f08df1a87cc78c4a67c3c232de1cbe7cfbea6ead838e6f41217b9e7 |