Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install gocept.pytestlayer

How to install gocept.pytestlayer

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install gocept.pytestlayer
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
1.0 Available View build log
ZPL 2.1
Lastest release
version 1.0 on Jan 9th, 2014

The gocept.pytestlayer distribution

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

This package is compatible with Python version 2.7.

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:

    parts += pytest
    recipe = zc.recipe.egg
    eggs = gocept.pytestlayer
           <YOUR PACKAGE HERE>
  • Write a conftest.py creating fixtures for your layers:

    from gocept.pytestlayer import fixture

    As long as there are any fixtures missing, the plugin will tell you about layers that need to be included. Calling py.test -x will make this process faster (as it makes the runner stop at the first error).

    Make sure to put the conftest.py inside a directory that is a parent of all directories that contain tests that use layers, so it is found by pytest whenever needed.

Change log for gocept.pytestlayer

1.0 (2013-08-28)
  • Initial release.

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.