Skip to main content
Help us improve Python packaging – donate today!

Setuptools plugin that makes unit tests execute with trial instead of pyunit.

Project Description

About

This is a plugin for setuptools that integrates Twisted trial. Once installed, “python ./setup.py trial” will run the package’s unit tests using Twisted trial. The package can also optionally be configured so that “python ./setup.py test” will use Twisted trial instead of pyunit a.k.a. unittest.

Installation

With pip:

pip install setuptools_trial

or with easy_install:

easy_install setuptools_trial

Alternative manual installation:

tar -zxvf setuptools_trial-X.Y.Z.tar.gz
cd setuptools_trial-X.Y.Z
python setup.py install

Where X.Y.Z is a version number.

Alternative to make a specific package use setuptools_trial without installing setuptools_trial into the system:

Put setup_requires=['setuptools_trial'] in the call to setup() in the package’s setup.py file.

Usage

Once setuptools_trial is installed (either into the system or just for the current package), then python ./setup.py trial will run trial on the package.

You can then make python ./setup.py test use trial instead of pyunit (unittest) by adding the following stanza to your project’s setup.cfg:

[aliases]
test = trial

See also the output of python ./setup.py trial --help for usage options.

References

To learn more about Python modules packaging visit https://www.pypa.io/en/latest/.

Thanks to Yannick Gingras for providing the prototype for this README.rst.

Release history Release notifications

This version
History Node

0.6.0

History Node

0.5.12

History Node

0.5.11

History Node

0.5.10

History Node

0.5.9

History Node

0.5.8

History Node

0.5.7

History Node

0.5.6

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

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
setuptools_trial-0.6.0-py2-none-any.whl (6.6 kB) Copy SHA256 hash SHA256 Wheel py2 Mar 21, 2016
setuptools_trial-0.6.0.tar.gz (6.2 kB) Copy SHA256 hash SHA256 Source None Mar 21, 2016

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