Navigation

  • next
  • previous |
  • pytest-2.7.0 »

Getting started basicsΒΆ

  • pytest: helps you write better programs
  • Installation and Getting Started
    • Installation
    • Our first test run
    • Asserting that a certain exception is raised
    • Grouping multiple tests in a class
    • Going functional: requesting a unique temporary directory
    • Where to go next
    • Known Installation issues
  • Usage and Invocations
    • Calling pytest through python -m pytest
    • Getting help on version, option names, environment variables
    • Stopping after the first (or N) failures
    • Specifying tests / selecting tests
    • Modifying Python traceback printing
    • Dropping to PDB (Python Debugger) on failures
    • Setting a breakpoint / aka set_trace()
    • Profiling test execution duration
    • Creating JUnitXML format files
    • Creating resultlog format files
    • Sending test report to online pastebin service
    • Disabling plugins
    • Calling pytest from Python code
  • Good Integration Practises
    • Work with virtual environments
    • Choosing a test layout / import rules
    • Use tox and Continuous Integration servers
    • Create a pytest standalone script
    • Integrating with distutils / python setup.py test
    • Integration with setuptools test commands
    • Conventions for Python test discovery
  • Project examples
    • Some organisations using pytest
  • Some Issues and Questions
    • On naming, nosetests, licensing and magic
    • pytest fixtures, parametrized tests
    • pytest interaction with other packages

Logo

Table Of Contents

  • Home
  • Contents
  • Install
  • Examples
  • Customize
  • Contact
  • Talks/Posts
  • Changelog

Related Topics

  • Documentation overview
    • Previous: Full pytest documentation
    • Next: pytest: helps you write better programs

Useful Links

  • The pytest Website
  • Contribution Guide
  • pytest @ PyPI
  • pytest @ Bitbucket
  • 3rd party plugins
  • Issue Tracker
  • PDF Documentation

Quick search

Enter search terms or a module, class or function name.

© Copyright 2014, holger krekel. Created using Sphinx.