Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid output with parameter --durations from pytest #75

Open
schabert opened this issue Jul 8, 2016 · 3 comments
Open

Invalid output with parameter --durations from pytest #75

schabert opened this issue Jul 8, 2016 · 3 comments

Comments

@schabert
Copy link

schabert commented Jul 8, 2016

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

@RonnyPfannschmidt
Copy link
Member

nice find, that issue isnt solved yet

@schabert
Copy link
Author

Did you need additional informations for that bug to solve it?

The version we are using:
python 2.7.10
pytest==2.8.7
pytest-xdist==1.14

@RonnyPfannschmidt
Copy link
Member

after just reading the involved code it looks like it should be correct, can you show the result based on running some of your tests singular vs xdist while running with --durations=10

based on that i hope to make a acceptance test that captures the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants