4
Summary: pytest: simple powerful testing with Python
5
Home-page: http://pytest.org
6
Author: Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others
9
Keywords: test unittest
15
Classifier: Development Status :: 6 - Mature
16
Classifier: Intended Audience :: Developers
17
Classifier: License :: OSI Approved :: MIT License
18
Classifier: Operating System :: POSIX
19
Classifier: Operating System :: Microsoft :: Windows
20
Classifier: Operating System :: MacOS :: MacOS X
21
Classifier: Topic :: Software Development :: Testing
22
Classifier: Topic :: Software Development :: Libraries
23
Classifier: Topic :: Utilities
24
Classifier: Programming Language :: Python :: 2
25
Classifier: Programming Language :: Python :: 2.6
26
Classifier: Programming Language :: Python :: 2.7
27
Classifier: Programming Language :: Python :: 3
28
Classifier: Programming Language :: Python :: 3.3
29
Classifier: Programming Language :: Python :: 3.4
30
Classifier: Programming Language :: Python :: 3.5
31
Requires-Dist: py (>=1.4.29)
32
Requires-Dist: setuptools
33
Requires-Dist: argparse; python_version=="2.6"
34
Requires-Dist: colorama; sys_platform=="win32"
36
.. image:: http://docs.pytest.org/en/latest/_static/pytest1.png
37
:target: http://docs.pytest.org
43
.. image:: https://img.shields.io/pypi/v/pytest.svg
44
:target: https://pypi.python.org/pypi/pytest
45
.. image:: https://img.shields.io/pypi/pyversions/pytest.svg
46
:target: https://pypi.python.org/pypi/pytest
47
.. image:: https://img.shields.io/coveralls/pytest-dev/pytest/master.svg
48
:target: https://coveralls.io/r/pytest-dev/pytest
49
.. image:: https://travis-ci.org/pytest-dev/pytest.svg?branch=master
50
:target: https://travis-ci.org/pytest-dev/pytest
51
.. image:: https://ci.appveyor.com/api/projects/status/mrgbjaua7t33pg6b?svg=true
52
:target: https://ci.appveyor.com/project/pytestbot/pytest
54
The ``pytest`` framework makes it easy to write small tests, yet
55
scales to support complex functional testing for applications and libraries.
57
An example of a simple test:
59
.. code-block:: python
61
# content of test_sample.py
72
============================= test session starts =============================
77
================================== FAILURES ===================================
78
_________________________________ test_answer _________________________________
85
test_sample.py:5: AssertionError
86
========================== 1 failed in 0.04 seconds ===========================
89
Due to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started <http://docs.pytest.org/en/latest/getting-started.html#our-first-test-run>`_ for more examples.
95
- Detailed info on failing `assert statements <http://docs.pytest.org/en/latest/assert.html>`_ (no need to remember ``self.assert*`` names);
98
<http://docs.pytest.org/en/latest/goodpractices.html#python-test-discovery>`_
99
of test modules and functions;
101
- `Modular fixtures <http://docs.pytest.org/en/latest/fixture.html>`_ for
102
managing small or parametrized long-lived test resources;
104
- Can run `unittest <http://docs.pytest.org/en/latest/unittest.html>`_ (or trial),
105
`nose <http://docs.pytest.org/en/latest/nose.html>`_ test suites out of the box;
107
- Python2.6+, Python3.3+, PyPy-2.3, Jython-2.5 (untested);
109
- Rich plugin architecture, with over 150+ `external plugins <http://docs.pytest.org/en/latest/plugins.html#installing-external-plugins-searching>`_ and thriving community;
115
For full documentation, including installation, tutorials and PDF documents, please see http://docs.pytest.org.
121
Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
127
Consult the `Changelog <http://docs.pytest.org/en/latest/changelog.html>`__ page for fixes and enhancements of each version.
133
Copyright Holger Krekel and others, 2004-2016.
135
Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
137
.. _`MIT`: https://github.com/pytest-dev/pytest/blob/master/LICENSE