We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--collect-only
1 parent 775e6c9 commit 4808ea6Copy full SHA for 4808ea6
pytest_reportportal/plugin.py
@@ -8,6 +8,9 @@
8
9
10
def pytest_sessionstart(session):
11
+ if session.config.getoption('--collect-only', default=False) is True:
12
+ return
13
+
14
PyTestService.init_service(
15
project=session.config.getini('rp_project'),
16
endpoint=session.config.getini('rp_endpoint'),
@@ -24,7 +27,10 @@ def pytest_sessionstart(session):
24
27
)
25
28
26
29
-def pytest_sessionfinish():
30
+def pytest_sessionfinish(session):
31
32
33
34
# FixMe: currently method of RP api takes the string parameter
35
# so it is hardcoded
36
PyTestService.finish_launch(status='RP_Launch')
0 commit comments