File tree 5 files changed +26
-4
lines changed
5 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Features
34
34
* ``--looponfail ``: run your tests repeatedly in a subprocess. After each run
35
35
pytest waits until a file in your project changes and then re-runs
36
36
the previously failing tests. This is repeated until all tests pass
37
- after which again a full run is performed.
37
+ after which again a full run is performed (DEPRECATED) .
38
38
39
39
* :ref: `Multi-Platform ` coverage: you can specify different Python interpreters
40
40
or different platforms and run tests in parallel on all of them.
Original file line number Diff line number Diff line change 5
5
Sending tests to remote SSH accounts
6
6
====================================
7
7
8
+ .. deprecated :: 3.0
9
+
10
+ .. warning ::
11
+
12
+ This feature is deprecated because the support for ``rsync `` is faulty
13
+ in terms of reproducing the development environment in the remote
14
+ worker, and there is no clear solution moving forward.
15
+
16
+ This feature is scheduled to be removed in release 4.0, to let the team
17
+ focus on a smaller set of features.
18
+
8
19
Suppose you have a package ``mypkg `` which contains some
9
20
tests that you can successfully run locally. And you
10
21
have a ssh-reachable machine ``myhost ``. Then
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def pytest_cmdline_main(config):
44
44
return 2 # looponfail only can get stop with ctrl-C anyway
45
45
46
46
47
- def looponfail_main (config : pytest .Config ) -> None :
47
+ def looponfail_main (config : " pytest.Config" ) -> None :
48
48
remotecontrol = RemoteControl (config )
49
49
config_roots = config .getini ("looponfailroots" )
50
50
if not config_roots :
Original file line number Diff line number Diff line change @@ -24,12 +24,16 @@ def pytest_xdist_newgateway(gateway):
24
24
"""called on new raw gateway creation."""
25
25
26
26
27
- @pytest .hookspec ()
27
+ @pytest .hookspec (
28
+ warn_on_impl = "rsync feature is deprecated and will be removed in pytest-xdist 4.0"
29
+ )
28
30
def pytest_xdist_rsyncstart (source , gateways ):
29
31
"""called before rsyncing a directory to remote gateways takes place."""
30
32
31
33
32
- @pytest .hookspec ()
34
+ @pytest .hookspec (
35
+ warn_on_impl = "rsync feature is deprecated and will be removed in pytest-xdist 4.0"
36
+ )
33
37
def pytest_xdist_rsyncfinish (source , gateways ):
34
38
"""called after rsyncing a directory to remote gateways takes place."""
35
39
Original file line number Diff line number Diff line change @@ -204,6 +204,13 @@ def pytest_configure(config):
204
204
)
205
205
config .issue_config_time_warning (warning , 2 )
206
206
207
+ if config .getoption ("rsyncdir" , None ) or config .getini ("rsyncdirs" ):
208
+ warning = DeprecationWarning (
209
+ "The --rsyncdir command line argument and rsyncdirs config variable are deprecated.\n "
210
+ "The rsync feature will be removed in pytest-xdist 4.0."
211
+ )
212
+ config .issue_config_time_warning (warning , 2 )
213
+
207
214
config_line = (
208
215
"xdist_group: specify group for tests should run in same session."
209
216
"in relation to one another. " + "Provided by pytest-xdist."
You can’t perform that action at this time.
0 commit comments