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