pytest-dev / pytest-dev/pytest-html

How add class name to Captured log call in html report

Open
#312 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
779
Forks
260
PR merge metrics
No merged PRs in 30d

Description

When try parse the HTML report to get some information about logging
All information about the test is put the same div class = "log"

How I can separate the output test failed and exit logging?
Exemplo:
div class="stdout"
-----------------------------Captured stdout setup------------------------------
div class="stderr"
-----------------------------Captured stderr setup------------------------------
div class="stdout"
------------------------------Captured stdout call------------------------------
div class="stdout"
-------------------------------Captured log call--------------------------------

Command: -v -o log_cli=True --html=~/tests/Reports/android.html --self-contained-html

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the HTML report with -v -o log_cli=True --html=~/tests/Reports/android.html --self-contained-html and inspect the generated stdout, stderr, and log divs. Determine how the captured setup, call, and log sections are represented, then verify that the resulting HTML lets each output type be separated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.