pytest-dev / pytest-dev/pytest

Support `-r w` and remove `--disable-warnings` argument

Open
#5,066 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

topic: config topic: reporting type: deprecation type: enhancement
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

It was added in https://github.com/pytest-dev/pytest/commit/e04d9ff80be855164799bb315d23ca611c4b10f4 by @aostr, and its only purpose is to remove the "w" in reportopts.

In https://github.com/pytest-dev/pytest/issues/1668#issuecomment-228550742 it is mentioned that this was discussed with @hpk42.

The main intention here appears to be to enable them by default.

I suggest adding support for -w in reportchars instead.

This would also allow for something like a-s to have everything, without "skipped" easily.

(came here because I want to add A also to also include pP passed ones)

Contributor guide

Open the contributing guide

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 or test is named. Start by tracing pytest's command-line handling for reportopts, reportchars, and --disable-warnings, then review the linked discussion for the intended default behavior. Done means -r w is supported, the obsolete argument is removed, and report-character combinations such as a-s work as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.