pytest-dev / pytest-dev/pytest-xdist
Invalid output with parameter --durations from pytest
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
I try to find the slowest test in my testing suite with the parameter --durations=2 in py.test
The problem is i received that output
========================== slowest 2 test durations ===========================
build 08-Jul-2016 08:46:49 0.04s setup >models/test_stack_template.py::TestStackIntegration::test_render_create_from_snapshot_with_validation
build 08-Jul-2016 08:46:49 0.01s setup >models/test_stack_controller.py::TestStackController::test_delete_a_new_stack_during_update
=================================== FAILURES ===================================
Is there a equivalent for xdist or is it possible to send the duration back to py.test so that it is proper displayed?
The duration of a single tests are usually between 3-7 minutes
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 reported output with pytest's --durations=2 option under xdist, using a distributed test suite with tests lasting several minutes. Trace how test durations are collected and displayed, then verify that the slowest-test report shows accurate durations or clearly communicates the limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100