summaryrefslogtreecommitdiff
path: root/psutil/tests/README.rst
blob: 61e066b7a0371d207d9e84b12493b1e51fb216f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Instructions for running tests
==============================

* There are two ways of running tests. As a "user", if psutil is already
  installed and you just want to test it works::

    python -m psutil.tests

  As a "developer", if you have a copy of the source code and you wish to hack
  on psutil::

    make setup-dev-env  # install missing third-party deps
    make test           # serial run
    make test-parallel  # parallel run

* To run tests on all supported Python versions install tox
  (``pip install tox``) then run ``tox`` from within psutil root directory.

* Every time a commit is pushed tests are automatically run on Travis
  (Linux, MACOS) and appveyor (Windows):

  * Travis builds: https://travis-ci.org/giampaolo/psutil
  * AppVeyor builds: https://ci.appveyor.com/project/giampaolo/psutil