Skip to main content

Buildout recipe to create a zope.testing test runner

Project description

tranchitella.recipe.testrunner

This recipe creates a zope.testing test runner script which supports code coverage analysis using the coverage python library.

Usage

The recipe supports the following options:

eggs

The eggs option specified a list of eggs to test given as one ore more setuptools requirement strings. Each string must be given on a separate line.

script-name

The script option gives the name of the script to generate, in the buildout bin directory. Of the option isn’t used, the part name will be used.

extra-paths

One or more extra paths to include in the generated test script.

defaults

The defaults option lets you specify testrunner default options.

working-directory

The working-directory option lets to specify a directory where the tests will run. The testrunner will change to this directory when run. If the working directory is the empty string or not specified at all, the recipe will create a working directory among the parts.

environment

A set of environment variables that should be exported before starting the tests.

initialization

Provide initialization code to run before running tests.

relative-paths

Use egg, test, and working-directory paths relative to the test script.

This is a minimal ‘’buildout.cfg’’ file which creates a test runner:

[test]
recipe = tranchitella.recipe.testrunner
eggs = myapplication

[test-coverage]
recipe = tranchitella.recipe.testrunner
eggs = myapplication
defaults = ['--coverage-module', 'myapplication', '--coverage-branch']

Changes

0.1 (2010-04-22)

  • First release, forked from zc.recipe.testrunner.

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

tranchitella.recipe.testrunner-0.1.tar.gz (16.9 kB view details)

Uploaded Source

File details

Details for the file tranchitella.recipe.testrunner-0.1.tar.gz.

File metadata

File hashes

Hashes for tranchitella.recipe.testrunner-0.1.tar.gz
Algorithm Hash digest
SHA256 02907f029cb02325a26081edd41f92faf7e2d235a88275f0803eb3ecd150f52b
MD5 25b42599b7a9ee39bd111fd15b674b73
BLAKE2b-256 c95594784cc768bd9da77e3aa1085bd9ca866a4f48547e49c52782078981d7b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page