pytest-dev / pytest-dev/pytest-html

new feature request: adding a textfile as a clickable url to report

Open
#466 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

I'm trying to add a file in .extras as a file and clickable url.
extras.html adds html and extras.text adds text directly into the report

It is the collected log along with the test it is way to big to show in report, but you can click it as you can with extras.images

Anyone having an example or idea on how to do this.

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 how extras.html, extras.text, and extras.images are handled in the pytest-html report, including the .extras references in the issue. Determine how a collected log or test file can be represented as a clickable URL instead of inline text, and verify that the generated report exposes that link; no test file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, python
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.