Development¶
Test suite¶
Before committing changes to the code base, please make sure that all tests pass. The test suite is managed by tox and configured to use system-wide packages when available. Thus to avoid frequent waiting, we recommend you to install the current versions of the following packages:
$> pip install networkx matplotlib basemap Sphinx
$> pip install tox pylint pytest pytest-xdist pytest-flake8
The test suite can be run from anywhere in the project tree by issuing:
$> tox
To expose the defined test environments and target them independently:
$> tox -l
$> tox -e units,style
To test individual files:
$> py.test tests/test_core/TestNetwork.py # unit tests
$> py.test --doctest-modules pyunicorn/core/network.py # doctests
$> py.test --flake8 pyunicorn/core/network.py # style
$> pylint pyunicorn/core/network.py # code analysis
Mailing list¶
Not implemented yet.