pytest-dev / pytest-dev/pytest-html

[Feature Request] Need report object in pytest_html_results_summary hook to extend the summary section

Open
#193 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be too good if we add "report" object to the pytest_html_results_summary hook, so that in runtime can use the objects in report like outcome, location,sections,for customization option. If we added it then it would be good to create the test summary table section consists of test_group_name,total tests in folder categorized by requirement,passed&failed&skipped in summary table section .If we implement this it would be good to provide overall coverage.

Otherwise we can provide hooks like html_table,row,column hooks already available

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 reading the pytest_html_results_summary hook and the existing html_table, row, and column hooks to understand the available extension points. Define whether the change should expose a report object or add new hooks, then establish tests and documentation showing that summary customization and the requested test-group totals work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.