File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,25 @@ in the **Unsilenced** section of the deprecation report.
73
73
Mark Tests as Legacy
74
74
--------------------
75
75
76
- There are four ways to mark a test as legacy:
76
+ There are three ways to mark a test as legacy:
77
77
78
78
* (**Recommended **) Add the ``@group legacy `` annotation to its class or method;
79
79
80
80
* Make its class name start with the ``Legacy `` prefix;
81
81
82
- * Make its method name start with ``testLegacy*() `` instead of ``test*() ``;
82
+ * Make its method name start with ``testLegacy*() `` instead of ``test*() ``.
83
83
84
- * Make its data provider start with ``provideLegacy*() `` or ``getLegacy*() ``.
84
+ .. note ::
85
+
86
+ If your data provider calls code that would usually trigger a deprecation,
87
+ you can prefix its name with ``provideLegacy `` or ``getLegacy `` to silent
88
+ these deprecations. If your data provider does not execute deprecated
89
+ code, it is not required to choose a special naming just because the
90
+ test being fed by the data provider is marked as legacy.
91
+
92
+ Also be aware that choosing one of the two legacy prefixes will not mark
93
+ tests as legacy that make use of this data provider. You still have to
94
+ mark them as legacy tests explicitly.
85
95
86
96
Configuration
87
97
-------------
You can’t perform that action at this time.
0 commit comments