Skip to content

Commit 0d62c32

Browse files
author
sergey.khomutinin
committed
ALLURE_MAX_STEP_MESSAGE_COUNT is optional
1 parent a83b9b2 commit 0d62c32

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

allure-robotframework/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ Listener support `robotframework-pabot library <https://pypi.python.org/pypi/rob
3535
3636
$ pabot --listener allure_robotframework ./my_robot_test
3737
38+
Advanced listener settings:
39+
40+
- ALLURE_MAX_STEP_MESSAGE_COUNT=5. If robotframework step contains less messages than specified in this setting, each message shows as substep. This reduces the number of attachments in large projects. The default value is zero - all messages are displayed as attachments.
3841

3942
Contributing to allure-robotframework
4043
=====================================
4144

4245
This project exists thanks to all the people who contribute. Especially by `Megafon <https://corp.megafon.com>`_ and
43-
`@skhomuti <https://github.com/skhomuti>`_ who started and maintaining allure-robotframework.
46+
`@skhomuti <https://github.com/skhomuti>`_ who started and maintaining allure-robotframework.

allure-robotframework/src/listener/robot_listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class allure_robotframework(object):
2525
DEFAULT_OUTPUT_PATH = os.path.join('output', 'allure')
2626
LOG_MESSAGE_FORMAT = '<p><b>[{level}]</b> {message}</p>'
2727
FAIL_MESSAGE_FORMAT = '<p style="color: red"><b>[{level}]</b> {message}</p>'
28-
MAX_STEP_MESSAGE_COUNT = 5
28+
MAX_STEP_MESSAGE_COUNT = int(os.getenv('ALLURE_MAX_STEP_MESSAGE_COUNT', 0))
2929

3030
def __init__(self, logger_path=DEFAULT_OUTPUT_PATH):
3131
self.stack = []

0 commit comments

Comments
 (0)