File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ Example of :code:`pytest.ini`:
5050 rp_launch_description = 'Smoke test'
5151 rp_ignore_errors = True
5252
53- The following parapmeters are optional:
53+ The following parameters are optional:
5454
55- - :code: `rp_launch = AnyLaunchName ` - launch name (could be overriden
55+ - :code: `rp_launch = AnyLaunchName ` - launch name (could be overridden
5656 by pytest --rp-launch option, default value is 'Pytest Launch')
5757- :code: `rp_launch_tags = 'PyTest' 'Smoke' ` - list of tags
5858- :code: `rp_launch_description = 'Smoke test' ` - launch description
@@ -138,6 +138,27 @@ To run test with Report Portal you can specify name of :code:`launch`:
138138 py.test ./tests --rp-launch AnyLaunchName
139139
140140
141+ Troubleshooting
142+ ~~~~~~~~~
143+
144+ In case you have connectivity issues (or similar problems) with Report Portal,
145+ it is possible to ignore exception raised by :code: `pytest_reportportal ` plugin.
146+ For this, please, add following option to :code: `pytest.ini ` configuration file:
147+
148+ .. code-block :: text
149+
150+ [pytest]
151+ ...
152+ rp_ignore_errors = True
153+
154+
155+ Or temporary disable :code: `pytest_reportportal ` plugin with command like:
156+
157+ .. code-block :: bash
158+
159+ py.test -p no:pytest_reportportal ./tests
160+
161+
141162 Copyright Notice
142163----------------
143164
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ def async_error_handler(self, exc_info):
6060 def _stop_if_neccessary (self ):
6161 try :
6262 exc , msg , tb = self ._errors .get (False )
63- traceback .print_exception (exc , msg , tb )
63+ err = traceback .format_exception (exc , msg , tb )
6464 if not self .ignore_errors :
65- pytest .exit (msg )
65+ pytest .exit ("" . join ( err ) )
6666 except queue .Empty :
6767 pass
6868
You can’t perform that action at this time.
0 commit comments