Skip to main content

Run cram tests with pytest.

Project description

Latest PyPI version Number of PyPI downloads Travis-CI build status Test coverage

pytest-cram: Run cram tests with py.test

cram tests command line applications. pytest tests Python applications. pytest-cram tests Python command line applications by letting you write your Python API tests with pytest, and your command line tests in cram. Best of both worlds!

Installation

To install and use pytest-cram, do:

pip install pytest-cram

Nengo supports Python 2.6, 2.7, and 3.3+.

Usage

Once installed, all .t files will be collected and run with cram, so installation should be all that is needed. If you wish to disable cram tests for an invocation of pytest, do:

py.test --nocram

If you wish to disable specific cram tests, list then in an .ini file like so:

[pytest]
cramignore = file1.t
    pattern*.t

Release History

0.1.0 (2016-02-28)

Initial release of pytest-cram! Supports Python 2.7+ and 3.3+.

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

pytest-cram-0.1.0.zip (15.3 kB view hashes)

Uploaded Source

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