|
| 1 | +Changelog |
| 2 | +========= |
| 3 | + |
| 4 | +0.5.1 (2020-02-14) |
| 5 | +~~~~~~~~~~~~~~~~~~ |
| 6 | + |
| 7 | +Bug fixes and minor changes |
| 8 | +--------------------------- |
| 9 | + |
| 10 | ++ Fix failing documentation build. |
| 11 | + |
| 12 | +0.5.0 (2020-02-14) |
| 13 | +~~~~~~~~~~~~~~~~~~ |
| 14 | + |
| 15 | +New features |
| 16 | +------------ |
| 17 | + |
| 18 | ++ `#3`_, `#35`_: add a scope to dependencies. |
| 19 | + (Thanks to JoeSc and selenareneephillips!) |
| 20 | + |
| 21 | +Bug fixes and minor changes |
| 22 | +--------------------------- |
| 23 | + |
| 24 | ++ `#34`_: failing test with pytest 4.2.0 and newer. |
| 25 | + |
| 26 | ++ Use setuptools_scm to manage the version number. |
| 27 | + |
| 28 | +.. _#35: https://github.com/RKrahl/pytest-dependency/pull/35 |
| 29 | +.. _#34: https://github.com/RKrahl/pytest-dependency/issues/34 |
| 30 | +.. _#3: https://github.com/RKrahl/pytest-dependency/issues/3 |
| 31 | + |
| 32 | +0.4.0 (2018-12-02) |
| 33 | +~~~~~~~~~~~~~~~~~~ |
| 34 | + |
| 35 | +Incompatible changes |
| 36 | +-------------------- |
| 37 | + |
| 38 | ++ Require pytest version 3.6.0 or newer. This implicitly drops |
| 39 | + support for Python 2.6 and for Python 3.3 and older. |
| 40 | + |
| 41 | +Bug fixes and minor changes |
| 42 | +--------------------------- |
| 43 | + |
| 44 | ++ `#24`_, `#25`_: get_marker no longer available in pytest 4.0.0. |
| 45 | + (Thanks to Rogdham!) |
| 46 | + |
| 47 | ++ `#28`_: Applying markers directly in parametrize is no longer |
| 48 | + available in 4.0. |
| 49 | + |
| 50 | +.. _#28: https://github.com/RKrahl/pytest-dependency/issues/28 |
| 51 | +.. _#25: https://github.com/RKrahl/pytest-dependency/pull/25 |
| 52 | +.. _#24: https://github.com/RKrahl/pytest-dependency/issues/24 |
| 53 | + |
| 54 | +0.3.2 (2018-01-17) |
| 55 | +~~~~~~~~~~~~~~~~~~ |
| 56 | + |
| 57 | +Bug fixes and minor changes |
| 58 | +--------------------------- |
| 59 | + |
| 60 | ++ `#5`_: properly register the dependency marker. |
| 61 | + |
| 62 | ++ Do not add the documentation to the source distribution. |
| 63 | + |
| 64 | +.. _#5: https://github.com/RKrahl/pytest-dependency/issues/5 |
| 65 | + |
| 66 | +0.3.1 (2017-12-26) |
| 67 | +~~~~~~~~~~~~~~~~~~ |
| 68 | + |
| 69 | +Bug fixes and minor changes |
| 70 | +--------------------------- |
| 71 | + |
| 72 | ++ `#17`_: Move the online documentation to Read the Docs. |
| 73 | + |
| 74 | ++ Some improvements in the documentation. |
| 75 | + |
| 76 | +.. _#17: https://github.com/RKrahl/pytest-dependency/issues/17 |
| 77 | + |
| 78 | +0.3 (2017-12-26) |
| 79 | +~~~~~~~~~~~~~~~~ |
| 80 | + |
| 81 | +New features |
| 82 | +------------ |
| 83 | + |
| 84 | ++ `#7`_: Add a configuration switch to implicitly mark all tests. |
| 85 | + |
| 86 | ++ `#10`_: Add an option to ignore unknown dependencies. |
| 87 | + |
| 88 | +Incompatible changes |
| 89 | +-------------------- |
| 90 | + |
| 91 | ++ Prepend the class name to the default test name for test class |
| 92 | + methods. This fixes a potential name conflict, see `#6`_. |
| 93 | + |
| 94 | + If your code uses test classes and you reference test methods by |
| 95 | + their default name, you must add the class name. E.g. if you have |
| 96 | + something like: |
| 97 | + |
| 98 | + .. code-block:: python |
| 99 | +
|
| 100 | + class TestClass(object): |
| 101 | +
|
| 102 | + @pytest.mark.dependency() |
| 103 | + def test_a(): |
| 104 | + pass |
| 105 | +
|
| 106 | + @pytest.mark.dependency(depends=["test_a"]) |
| 107 | + def test_b(): |
| 108 | + pass |
| 109 | +
|
| 110 | + you need to change this to: |
| 111 | + |
| 112 | + .. code-block:: python |
| 113 | +
|
| 114 | + class TestClass(object): |
| 115 | +
|
| 116 | + @pytest.mark.dependency() |
| 117 | + def test_a(): |
| 118 | + pass |
| 119 | +
|
| 120 | + @pytest.mark.dependency(depends=["TestClass::test_a"]) |
| 121 | + def test_b(): |
| 122 | + pass |
| 123 | +
|
| 124 | + If you override the test name in the :func:`pytest.mark.dependency` |
| 125 | + marker, nothing need to be changed. |
| 126 | + |
| 127 | +Bug fixes and minor changes |
| 128 | +--------------------------- |
| 129 | + |
| 130 | ++ `#11`_: show the name of the skipped test. |
| 131 | + (Thanks asteriogonzalez!) |
| 132 | + |
| 133 | ++ `#13`_: Do not import pytest in setup.py to make it compatible with |
| 134 | + pipenv. |
| 135 | + |
| 136 | ++ `#15`_: tests fail with pytest 3.3.0. |
| 137 | + |
| 138 | ++ `#8`_: document incompatibility with parallelization in |
| 139 | + pytest-xdist. |
| 140 | + |
| 141 | ++ Clarify in the documentation that Python 3.1 is not officially |
| 142 | + supported because pytest 2.8 does not support it. There is no known |
| 143 | + issue with Python 3.1 though. |
| 144 | + |
| 145 | +.. _#15: https://github.com/RKrahl/pytest-dependency/issues/15 |
| 146 | +.. _#13: https://github.com/RKrahl/pytest-dependency/issues/13 |
| 147 | +.. _#11: https://github.com/RKrahl/pytest-dependency/pull/11 |
| 148 | +.. _#10: https://github.com/RKrahl/pytest-dependency/issues/10 |
| 149 | +.. _#8: https://github.com/RKrahl/pytest-dependency/issues/8 |
| 150 | +.. _#7: https://github.com/RKrahl/pytest-dependency/issues/7 |
| 151 | +.. _#6: https://github.com/RKrahl/pytest-dependency/issues/6 |
| 152 | + |
| 153 | +0.2 (2017-05-28) |
| 154 | +~~~~~~~~~~~~~~~~ |
| 155 | + |
| 156 | +New features |
| 157 | +------------ |
| 158 | + |
| 159 | ++ `#2`_: Add documentation. |
| 160 | + |
| 161 | ++ `#4`_: Add a depend() function to add a dependency to a test at |
| 162 | + runtime. |
| 163 | + |
| 164 | +.. _#4: https://github.com/RKrahl/pytest-dependency/issues/4 |
| 165 | +.. _#2: https://github.com/RKrahl/pytest-dependency/issues/2 |
| 166 | + |
| 167 | +0.1 (2017-01-29) |
| 168 | +~~~~~~~~~~~~~~~~ |
| 169 | + |
| 170 | ++ Initial release as an independent Python module. |
| 171 | + |
| 172 | + This code was first developed as part of a larger package, |
| 173 | + `python-icat`_, at Helmholtz-Zentrum Berlin für Materialien und |
| 174 | + Energie. |
| 175 | + |
| 176 | +.. _python-icat: https://github.com/icatproject/python-icat |
0 commit comments