pytest-dev / pytest-dev/pytest-html

Error : The 'td' start tag on line 347 position 12 does not match the end tag of 'th'. Line 347, position 65.

Open
#823 1 comment 0 reactions 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

Bug Description for pytest-html Plugin
Summary:
The pytest-html plugin encounters issues generating a valid HTML report, leading to a warning in Azure DevOps and subsequent failure in publishing test results. The primary error indicates a mismatched HTML tag, causing the HTML report to be malformed.
Steps to Reproduce:

  1. Run tests using pytest with the pytest-html plugin to generate an HTML report.
  2. Attempt to publish the HTML report in an Azure DevOps pipeline.
  3. Observe the above error messages indicating issues with reading and publishing the test report.

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-generation steps with pytest-html and inspect the generated HTML around line 347, where the mismatched td and th tags are reported. Then try publishing that report in an Azure DevOps pipeline. Done means the generated report is valid HTML and can be published without the parsing warning or failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.