tree: 56c89e87c1fa065c7df2baa5be3308309106bc8c
  1. __init__.py
  2. README.md
  3. test_aix.py
  4. test_bsd.py
  5. test_connections.py
  6. test_contracts.py
  7. test_heap.py
  8. test_linux.py
  9. test_memleaks.py
  10. test_misc.py
  11. test_osx.py
  12. test_posix.py
  13. test_process.py
  14. test_process_all.py
  15. test_scripts.py
  16. test_sudo.py
  17. test_sunos.py
  18. test_system.py
  19. test_testutils.py
  20. test_type_hints.py
  21. test_unicode.py
  22. test_windows.py
tests/README.md

Instructions for running tests

Install deps (e.g. pytest):

.. code-block:: bash

make install-pydeps-test

Run tests:

.. code-block:: bash

make test

Run tests in parallel (faster):

.. code-block:: bash

make test-parallel

Run a specific test:

.. code-block:: bash

make test ARGS=tests.test_system.TestDiskAPIs

Test C extension memory leaks:

.. code-block:: bash

make test-memleaks

Running tests on Windows

Same as above, just replace make with make.bat, e.g.:

.. code-block:: bash

make.bat install-pydeps-test
make.bat test
set ARGS=-k tests.test_system.TestDiskAPIs && make.bat test