pytest-dev / pytest-dev/pytest-html

extras.html adds html content in the same page while extras.text adds as a link

Open
#338 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I m tryin to add a dataframe as an html table to report using extra.append(extras.html(dataframe.to_html())). It is adding the table inside the test Details, but I would like add it as a link under Links column, so that when I click on the link, it opens the dataframe in a new tab. Is it possible already?

Note: extras.text("some text") adds the text as a link

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 tracing how extras.html and extras.text are handled in the report generation flow, then follow where content is placed in the Test Details and Links sections. The change is complete when HTML table content can be rendered as a link under Links and opens in a new tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
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.