summaryrefslogtreecommitdiff
path: root/README
blob: 12f90464418eeb4ca60301db1edd89b47f805eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pytest-runner
=============

Setup scripts can use pytest-runner to add setup.py test support for pytest
runner.

Recommended usage
-----------------

- add 'pytest-runner' to your 'setup_requires'
- include 'pytest' and any other testing requirements to 'tests_require'
- invoke tests with setup.py ptr

Alternate usage
---------------

- include this file (ptr.py) in your repo
- add these lines to your setup.py::

	execfile('ptr.py')
	setup_params = PyTest.install(dict(...))
	setuptools.setup(**setup_params)

  Where '...' are your normal keyword parameters to setup()

- invoke your tests with setup.py test

Changes
-------

1.0
~~~

Initial implementation.