Open delatrie opened 7 months ago
vote for this bug!
same problem with color coded ANSI-colored strings in allure report... but I found it in attachment!
in terminal same colored log strings look like this
code to reproduce:
@pytest.fixture()
def log_delimiter(request):
test_name = request.function.__name__
test_title = f"{(' ' + test_name + ' '):-^79}"
if request.config.option.color == 'yes':
test_title = '\033[1m%s\033[0m' % test_title
logger.info(f"{os.linesep}{test_title}")
Element: _pre class "attachment_text"
here is the attachment example with problematic ANSI-colored strings
Discussed in https://github.com/orgs/allure-framework/discussions/2485