Skip to content

Commit 6a3d5a8

Browse files
committed
raising exception when using 'xdist' plug-in
1 parent 0f0cd17 commit 6a3d5a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pytest_reportportal/plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def pytest_configure(config):
3434
if not config.option.rp_launch:
3535
config.option.rp_launch = config.getini('rp_launch')
3636

37+
if config.pluginmanager.hasplugin('xdist'):
38+
raise Exception(
39+
"pytest report portal is not compatible with 'xdist' plugin.")
40+
3741
# set Pytest_Reporter and configure it
3842
config._reporter = RPReportListener()
3943

0 commit comments

Comments
 (0)