|
| 1 | +History of changes to pytest-dependency |
| 2 | +======================================= |
| 3 | + |
| 4 | +0.3.2 (2018-01-17) |
| 5 | + Bug fixes and minor changes |
| 6 | + + Issue #5: properly register the dependency marker. |
| 7 | + + Do not add the documentation to the source distribution. |
| 8 | + |
| 9 | +0.3.1 (2017-12-26) |
| 10 | + Bug fixes and minor changes |
| 11 | + + Issue #17: Move the online documentation to Read the Docs |
| 12 | + + Some improvements in the documentation. |
| 13 | + |
| 14 | +0.3 (2017-12-26) |
| 15 | + New features |
| 16 | + + Issue #7: Add a configuration switch to implicitly mark all |
| 17 | + tests. |
| 18 | + + Issue #10: Add an option to ignore unknown dependencies. |
| 19 | + |
| 20 | + Incompatible changes |
| 21 | + + Prepend the class name to the default test name for test class |
| 22 | + methods. This fixes a potential name conflict, see Issue #6. |
| 23 | + |
| 24 | + If your code uses test classes and you reference test methods |
| 25 | + by their default name, you must add the class name. E.g. if |
| 26 | + you have something like: |
| 27 | + |
| 28 | + .. code-block:: python |
| 29 | +
|
| 30 | + class TestClass(object): |
| 31 | + |
| 32 | + @pytest.mark.dependency() |
| 33 | + def test_a(): |
| 34 | + pass |
| 35 | + |
| 36 | + @pytest.mark.dependency(depends=["test_a"]) |
| 37 | + def test_b(): |
| 38 | + pass |
| 39 | + |
| 40 | + you need to change this to: |
| 41 | + |
| 42 | + .. code-block:: python |
| 43 | +
|
| 44 | + class TestClass(object): |
| 45 | + |
| 46 | + @pytest.mark.dependency() |
| 47 | + def test_a(): |
| 48 | + pass |
| 49 | + |
| 50 | + @pytest.mark.dependency(depends=["TestClass::test_a"]) |
| 51 | + def test_b(): |
| 52 | + pass |
| 53 | + |
| 54 | + If you override the test name in the pytest.mark.dependency() |
| 55 | + marker, nothing need to be changed. |
| 56 | + |
| 57 | + Bug fixes and minor changes |
| 58 | + |
| 59 | + + PR #11: show the name of the skipped test (thanks |
| 60 | + asteriogonzalez). |
| 61 | + |
| 62 | + + Issue #13: Do not import pytest in setup.py to make it |
| 63 | + compatible with pipenv. |
| 64 | + |
| 65 | + + Issue #15: tests fail with pytest 3.3.0. |
| 66 | + |
| 67 | + + Issue #8: document incompatibility with parallelization in |
| 68 | + pytest-xdist. |
| 69 | + |
| 70 | + + Clarify in the documentation that Python 3.1 is not officially |
| 71 | + supported because pytest 2.8 does not support it. There is no |
| 72 | + known issue with Python 3.1 though. |
| 73 | + |
| 74 | +0.2 (2017-05-28) |
| 75 | + New features |
| 76 | + + Issue #2: Add documentation. |
| 77 | + + Issue #4: Add a depend() function to add a dependency to a |
| 78 | + test at runtime. |
| 79 | + |
| 80 | +0.1 (2017-01-29) |
| 81 | + + Initial release as an independent Python module. |
| 82 | + |
| 83 | + This code was first developed as part of a larger package, |
| 84 | + python-icat, at Helmholtz-Zentrum Berlin für Materialien und |
| 85 | + Energie, see |
| 86 | + https://icatproject.org/user-documentation/python-icat/ |
0 commit comments