From d1ba19acad3e1187149fc73593f4015fb73e8d54 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 10 Apr 2018 07:57:04 -0300 Subject: [PATCH] Add the list of issues fixed by the new marker implementation to the docs This will help make users more understanding if their code breaks under the new implementation. --- doc/en/mark.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/en/mark.rst b/doc/en/mark.rst index b08788254ea..bee60f923f9 100644 --- a/doc/en/mark.rst +++ b/doc/en/mark.rst @@ -51,6 +51,35 @@ in fact, markers where only accessible in functions, even if they where declared A new API to access markers has been introduced in pytest 3.6 in order to solve the problems with the initial design, providing :func:`_pytest.nodes.Node.iter_markers` method to iterate over markers in a consistent manner and reworking the internals, which solved great deal of problems with the initial design. +Here is a non-exhaustive list of issues fixed by the new implementation: + + +* Marks don't pick up nested classes (`#199 `_). + +* markers stains on all related classes (`#568 `_). + +* combining marks - args and kwargs calculation (`#2897 `_). + +* ``request.node.get_marker('name')`` returns ``None`` for markers applied in classes (`#902 `_). + +* marks applied in parametrize are stored as markdecorator (`#2400 `_). + +* fix marker interaction in a backward incompatible way (`#1670 `_). + +* Refactor marks to get rid of the current "marks transfer" mechanism (`#2363 `_). + +* Introduce FunctionDefinition node, use it in generate_tests (`#2522 `_). + +* remove named marker attributes and collect markers in items (`#891 `_). + +* skipif mark from parametrize hides module level skipif mark (`#1540 `_). + +* skipif + parametrize not skipping tests (`#1296 `_). + +* marker transfer incompatible with inheritance (`#535 `_). + +More details can be found in the `original PR `_. + .. note:: in a future major relase of pytest we will introduce class based markers,