Welcome to the developer's guide for the Python wpa_supplicant library.
Use virtualenv
to create a Python environment.
$ virtualenv -p /usr/bin/python2 env2
Activate one of the environments.
$ source env2/bin/activate
Then, install the development dependencies.
(env2) $ pip install -r dev-requirements.txt
This project uses nose
for finding and executing tests and coverage
for generating
HTML based coverage reports.
Running the tests can be as easy as:
$ nosetests
However, running the tests is highly configurable and for this project it is easiest
to run a script which makes use of config files under etc/
.
$ ./run_tests.sh
Check out the coverage reports:
$ firefox cover/index.html