pytest-dev / pytest-dev/pytest-xdist
[bug] log_cli unexpectedly causes verbose progress output
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
I've been confused for a while about why pytest-xdist has been printing verbose progress percentages during my test runs even when I do not have -v option added anywhere.
Recently I experimented by removing log_cli=true from my pytest.ini file and - voilà - the verbose progress was replaced with the "dots" progress indicators I had been looking for.
I understand that pytest-xdist can't support live logs given its current implementation, but I would still love to have log_cli=true be the default behavior whenever xdist isn't enabled and get the default "dots" progress output whenever xdist is enabled.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior with pytest-xdist and a pytest.ini setting of log_cli=true, comparing runs with xdist enabled and disabled. The issue is done when non-xdist runs use live logging by default while xdist runs retain dots progress without requiring -v.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100