Skip to content

Tests too slow, need much faster feedback #14

@nirs

Description

@nirs

Even after #13, tests are too slow.

$ tox -e 2.7 -- py.test -v --durations=10
2.7 develop-inst-nodeps: /home/nsoffer/src/python-manhole
2.7 runtests: PYTHONHASHSEED='4080427460'
2.7 runtests: commands[0] | py.test -v --durations=10
============================================================================= test session starts ==============================================================================
platform linux2 -- Python 2.7.5 -- py-1.4.23 -- pytest-2.6.1 -- /home/nsoffer/src/python-manhole/.tox/2.7/bin/python2.7
plugins: cov, capturelog
collected 14 items

tests/test_manhole.py::test_simple PASSED
tests/test_manhole.py::test_fork_exec PASSED
tests/test_manhole.py::test_socket_path PASSED
tests/test_manhole.py::test_socket_path_with_fork PASSED
tests/test_manhole.py::test_exit_with_grace PASSED
tests/test_manhole.py::test_with_fork PASSED
tests/test_manhole.py::test_with_forkpty PASSED
tests/test_manhole.py::test_auth_fail PASSED
tests/test_manhole.py::test_activate_on_usr2 PASSED
tests/test_manhole.py::test_activate_on_with_oneshot_on PASSED
tests/test_manhole.py::test_oneshot_on_usr2 PASSED
tests/test_manhole.py::test_fail_to_cry PASSED
tests/test_manhole.py::test_oneshot_on_usr2_error PASSED
tests/test_manhole.py::test_interrupt_on_accept PASSED

========================================================================== slowest 10 test durations ===========================================================================
11.11s call tests/test_manhole.py::test_oneshot_on_usr2_error
10.81s call tests/test_manhole.py::test_oneshot_on_usr2
10.70s call tests/test_manhole.py::test_activate_on_usr2
4.39s call tests/test_manhole.py::test_simple
2.62s call tests/test_manhole.py::test_with_fork
2.57s call tests/test_manhole.py::test_with_forkpty
2.56s call tests/test_manhole.py::test_socket_path_with_fork
2.12s call tests/test_manhole.py::test_interrupt_on_accept
1.16s call tests/test_manhole.py::test_fork_exec
0.61s call tests/test_manhole.py::test_exit_with_grace
==================================================================== 14 passed, 2 warnings in 49.98 seconds ====================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions