pytest-dev / pytest-dev/pytest-html

No log output captured in my Pytest HTML report

Open
#444 53 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Team, every time if i ran the HTML report in pytest getting below error .No logs are captured in that report.Please help me how to resolve this issue to get captured all the data..I have used below code

pytest -v -s nopecom_testPackage/test_admin_LoginPage.py --html=report.html
Capture

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

Start by reproducing the report with pytest -v -s nopecom_testPackage/test_admin_LoginPage.py --html=report.html and inspect the attached screenshot. Read the pytest-html handling of captured output and compare the generated report with the expected log content. Done means the cause is established and the report captures the relevant output, but the issue does not identify a test or source file to change.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.