pytest-dev / pytest-dev/pytest-html

No output if I run pytest with collect-only flag ("--co")

Open
#708 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 use the --co option in Pytest a lot to make sure new tests I write get picked up by our automation test framework. Unfortunately, pytest-html doesn't show me any information in the report (this is from rc5):

Screenshot 2023-08-08 at 11 03 02 AM

It would be nice to have that output available, something like this:

Screenshot 2023-08-08 at 11 05 45 AM

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

Reproduce the issue by running pytest with the --co option and pytest-html, then trace how collection results are handled in the plugin's report generation entry points. Done means the HTML report includes the collected test information instead of being empty, matching the requested output shown in the issue.

Written by the indexing model from the issue text.

Assessment

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