Skip to main content

Integration of zope.testrunner-style test layers into the py.test framework

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

The gocept.pytestlayer distribution

Integration of zope.testrunner-style test layers into the py.test framework

This package is compatible with Python versions 2.6 and 2.7. (To run its tests successfully you should use at least Python 2.7.4 because of a bug in earlier Python 2.7 versions.)

Quick start

  • Make sure your test files follow the conventions of py.test’s test discovery

    In particular, a file named tests.py will not be recognised.

  • Add a buildout section to create the py.test runner:

    [buildout]
    parts += pytest
    
    [pytest]
    recipe = zc.recipe.egg
    eggs = gocept.pytestlayer
           pytest
           <YOUR PACKAGE HERE>

gocept.pytestlayer registers itself as a py.test plugin. This way, nothing more is needed to run an existing Zope or Plone test suite.

Developing gocept.pytestlayer

Author:

gocept <mail@gocept.com>, Godefroid Chapelle <gotcha@bubblenet.be>

Online documentation:

http://pythonhosted.org/gocept.pytestlayer/

PyPI page:

http://pypi.python.org/pypi/gocept.pytestlayer/

Issues:

report by e-mail

Source code:

https://bitbucket.org/gocept/gocept.pytestlayer/

Current change log:

https://bitbucket.org/gocept/gocept.pytestlayer/raw-file/tip/CHANGES.txt

Change log for gocept.pytestlayer

2.0 (2013-09-19)

  • Remove need to explicitely create fixtures. [gotcha]

  • Add plone.testing.layered test suites support. [gotcha]

  • Made tests a bit more robust. [icemac]

1.0 (2013-08-28)

  • Initial release. [tlotze, icemac, gotcha]

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

gocept.pytestlayer-2.0.zip (44.5 kB view details)

Uploaded Source

File details

Details for the file gocept.pytestlayer-2.0.zip.

File metadata

  • Download URL: gocept.pytestlayer-2.0.zip
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gocept.pytestlayer-2.0.zip
Algorithm Hash digest
SHA256 8530fa6d8eefa201649b451a5b1f0129c6a967f9314bf356df74c1903c7a753b
MD5 42131bbd3692502de2087d9d710a7265
BLAKE2b-256 084725a12a473efa32b19b5334b66e2fc3f28753923ad4836ab7e6cda4693d2b

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