robotframework / robotframework/robotframework

ANSI Escapes Converted to HTML Properties in Report

Open
#5,774 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11.9k
Forks
2.6k
Avg merge
1d 18h
Merged PRs (30d)
10

Description

Would there be any interest in adding a built-in mechanism to automatically translate ANSI color codes into HTML/CSS styling in report files? (for example, via a new ansi=True argument to logger)?

Currently, capturing CLI outputs (like Ansible or Docker) clutters reports with raw escape codes unless they are stripped or parsed externally. I'm happy to implement this via a pull request, but wanted to check if this fits within the project's scope before writing the code.

Regards

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the logger entry point and report generation path for captured CLI output, including the proposed ansi=True argument. Compare how ANSI escapes currently appear in report files and define the supported HTML/CSS translation behavior. Done means the built-in mechanism is scoped, implemented, and verified for representative Ansible or Docker output.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html, python
Domain
testing, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.