pytest-dev / pytest-dev/pytest-html

any method to auto format the extra json?

Open
#666 6 comments 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

it would be nice if the extra json

  1. can be auto formated(such as using browser plugin)
  2. keywords are highlighted

but currently

  1. cannot, because it is opened as offline file on local file system, so won't be auto formated(at least by my browser plugin in test).
  2. this is currently ok. but to walkaround issue1, i have to convert it to formatted extra text, so no highlights any more.

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

No file, test, or entry point is named. Start by locating where pytest-html renders the extra JSON in the generated report and inspect how the current text and highlighting are produced. Done means the JSON can be formatted in the report while retaining keyword highlighting, with the intended browser or offline-file behavior clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, python
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.