Skip to content

Commit 4a284c1

Browse files
committed
Add a more sensible README
1 parent 155faec commit 4a284c1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,42 @@ pytest-ordering
22
===============
33

44
pytest plugin to run your tests in a specific order
5+
6+
[![Build Status](https://travis-ci.org/ftobia/pytest-ordering.svg?branch=develop)](https://travis-ci.org/ftobia/pytest-ordering)
7+
8+
Have you ever wanted to easily run one of your tests before any others run? Or run some tests last? Or run this one test before this one other test? Or make sure that this group of tests runs after this other group of tests?
9+
10+
Now you can.
11+
12+
Install with:
13+
14+
pip install pytest-ordering
15+
16+
This defines some pytest markers that you can use in your code.
17+
18+
For example, this:
19+
20+
import pytest
21+
22+
@pytest.mark.order2
23+
def test_foo():
24+
assert True
25+
26+
@pytest.mark.order1
27+
def test_bar():
28+
assert True
29+
30+
Yields this output:
31+
32+
$ py.test test_foo.py -vv
33+
============================= test session starts ==============================
34+
platform darwin -- Python 2.7.5 -- py-1.4.20 -- pytest-2.5.2 -- env/bin/python
35+
plugins: ordering
36+
collected 2 items
37+
38+
test_foo.py:7: test_bar PASSED
39+
test_foo.py:3: test_foo PASSED
40+
41+
=========================== 2 passed in 0.01 seconds ===========================
42+
43+
Check out the docs: http://pytest-ordering.readthedocs.org/

0 commit comments

Comments
 (0)