Skip to content

Commit c9ced10

Browse files
committed
Add list of old issues from pytest-ordering for reference
1 parent 7591216 commit c9ced10

File tree

5 files changed

+80
-25
lines changed

5 files changed

+80
-25
lines changed

old_issues.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
List of issues in pytest-ordering
2+
---------------------------------
3+
4+
Tracks the state of all open issues in pytest-ordering for reference.
5+
6+
- [Implement "before" and "after" markers](https://github.com/ftobia/pytest-ordering/issues/6)
7+
manually merged respective [PR](https://github.com/ftobia/pytest-ordering/pull/37)
8+
by Jonas Zinn :heavy_check_mark:
9+
- [Custom markers](https://github.com/ftobia/pytest-ordering/issues/10)
10+
will not be implemented (see
11+
[this issue](https://github.com/ftobia/pytest-ordering/issues/38)) :-1:
12+
- [Support for ordering testcases](https://github.com/ftobia/pytest-ordering/issues/12)
13+
unclear question, will ignore :-1:
14+
- [Test sparse ordinal behavior](https://github.com/ftobia/pytest-ordering/issues/14)
15+
- added tests from [this PR](https://github.com/ftobia/pytest-ordering/pull/29),
16+
- added `sparse-ordering` option, implemented behavior :heavy_check_mark:
17+
- [Doesn't work when using inside a class](https://github.com/ftobia/pytest-ordering/issues/18)
18+
seems to be fixed :heavy_check_mark:
19+
- [Allow ordering on per-class or per-module basis, instead of just per-session](https://github.com/ftobia/pytest-ordering/issues/20)
20+
added `--order-scope` option :heavy_check_mark:
21+
- [Ordering with multiple files](https://github.com/ftobia/pytest-ordering/issues/25)
22+
behavior can be configured with `--order-scope=module` :heavy_check_mark:
23+
- [Move to pytest-dev organization](https://github.com/ftobia/pytest-ordering/issues/32)
24+
handled in mirrored [issue](https://github.com/mrbean-bremen/pytest-order/issues/4) :heavy_check_mark:
25+
- [Ordering of test suite](https://github.com/ftobia/pytest-ordering/issues/33)
26+
don't understand the issue, ignoring :-1:
27+
- [Ensure compatibility with xdist](https://github.com/ftobia/pytest-ordering/issues/36)
28+
added/adapted [respective test](https://github.com/ftobia/pytest-ordering/pull/52) by Andrew Gilbert :heavy_check_mark:
29+
- [Standardize on a single marker name: "order"](https://github.com/ftobia/pytest-ordering/issues/38)
30+
implemented :heavy_check_mark:
31+
- [Remove not existing "relative ordering" feature from docs](https://github.com/ftobia/pytest-ordering/issues/39)
32+
obsolete, docs are up-to-date :heavy_check_mark:
33+
- [Ordering ignored on specification of multiple testcases](https://github.com/ftobia/pytest-ordering/issues/42)
34+
added respective test, seems to work correctly :heavy_check_mark:
35+
- [Order will work between diffrent testClass](https://github.com/ftobia/pytest-ordering/issues/53)
36+
behavior can be configured with `--order-scope=class` :heavy_check_mark:
37+
- [Unknown mark warning](https://github.com/ftobia/pytest-ordering/issues/57)
38+
obsolete with registered marker :heavy_check_mark:
39+
- [pytest-ordering doesn't honor test dependencies](https://github.com/ftobia/pytest-ordering/issues/58)
40+
unclear what we can do here - maybe handle dependency markers like
41+
before/after markers? :thought_balloon:
42+
- [should pytest-ordering be deprecated in favor of pytest-dependency?](https://github.com/ftobia/pytest-ordering/issues/59)
43+
has been answered (`pytest-dependency` does not support ordering) :heavy_check_mark:
44+
- [py.test ordering doesn't works when methods with order greater than 9 are present](https://github.com/ftobia/pytest-ordering/issues/61)
45+
not reproducible, probably obsolete :-1:
46+
- [All ordering tests are failing (git develop)](https://github.com/ftobia/pytest-ordering/issues/62)
47+
not reproducible, will ignore :-1:
48+
- [Packaging the license file](https://github.com/ftobia/pytest-ordering/issues/63)
49+
done in [this PR](https://github.com/ftobia/pytest-ordering/pull/68)
50+
by Álvaro Mondéjar :heavy_check_mark:
51+
- [pytest ordering excecute in reverse order](https://github.com/ftobia/pytest-ordering/issues/64)
52+
not reproducible, will ignore :-1:
53+
- [The module relative order don't working???](https://github.com/ftobia/pytest-ordering/issues/65)
54+
see [Implement "before" and "after" markers](https://github.com/ftobia/pytest-ordering/issues/6) :heavy_check_mark:
55+
- [Travis.CI results not showing up in GitHub](https://github.com/ftobia/pytest-ordering/issues/70)
56+
not an issue here :heavy_check_mark:
57+
- [Test ordering is completely broken](https://github.com/ftobia/pytest-ordering/issues/73)
58+
obsolete, shall work with respective `order` markers :heavy_check_mark:

tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import uuid
2+
13
import pytest
24

35
pytest_plugins = ["pytester"]
@@ -13,3 +15,10 @@ def _item_names_for(tests_content):
1315
return [item.name for item in items]
1416

1517
return _item_names_for
18+
19+
20+
@pytest.fixture
21+
def test_path(tmpdir):
22+
path = tmpdir.join("{}.py".format(str(uuid.uuid4())))
23+
yield str(path)
24+
path.remove()

tests/test_order_scope.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# -*- coding: utf-8 -*-
22
import os
3-
import re
43
import shutil
54

65
import pytest
76

87
import pytest_order
8+
from utils import assert_test_order
99

1010

1111
@pytest.fixture(scope="module")
@@ -85,11 +85,6 @@ def fixture_file_paths(fixture_path):
8585
]
8686

8787

88-
def assert_test_order(test_names, out):
89-
expected = ".*" + ".*".join(test_names)
90-
assert re.match(expected, out.replace("\n", "")), out
91-
92-
9388
def test_session_scope(fixture_path, capsys):
9489
args = ["-v", fixture_path]
9590
pytest.main(args, [pytest_order])

tests/test_sparse_ordinals.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
11
# -*- coding: utf-8 -*-
2-
import re
3-
import uuid
42

53
import pytest
64

75
import pytest_order
8-
9-
10-
@pytest.fixture
11-
def test_path(tmpdir):
12-
path = tmpdir.join("{}.py".format(str(uuid.uuid4())))
13-
yield str(path)
14-
path.remove()
15-
16-
17-
def write_test(path, contents):
18-
with open(path, "w") as fi:
19-
fi.write(contents)
20-
21-
22-
def assert_test_order(test_names, out):
23-
expected = ".*" + ".*".join(test_names)
24-
assert re.match(expected, out.replace("\n", "")), out
6+
from utils import write_test, assert_test_order
257

268

279
def test_first(test_path, capsys):

tests/utils.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import re
2+
3+
4+
def write_test(path, contents):
5+
with open(path, "w") as fi:
6+
fi.write(contents)
7+
8+
9+
def assert_test_order(test_names, out):
10+
expected = ".*" + ".*".join(test_names)
11+
assert re.match(expected, out.replace("\n", "")), out

0 commit comments

Comments
 (0)