pytest-dev / pytest-dev/pytest-html

future plans: render junit report files with javascript?

Open
#325 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This is more of a long term direction option for pytest-html: instead of rendering a HTML file with the plugin maybe it would be better to make it load and display junit reports using JavaScript.

Even mobile browsers are very powerful now and such a design would allow hosting the rendering code in a single place and just to generate a very small html which loads the JavaScript renderer and the report file(s).

Does this makes sense? Do you see any problems with a design like this?

One of the advantages is that it would greatly reduce the footprint of the reports and will also allow users to upgrade renderer at any time, even after reports were generated.

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 reviewing how pytest-html currently generates and renders reports, then assess the proposed JavaScript renderer and JUnit report loading design. Document the design decision, its trade-offs, and the scope of any implementation work needed; this issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
testing, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.