The project uses tox for automated testing and dependency mangement and pytest as test framework.
Install tox and run 'tox' on your command line. This will execute all unit tests. Unit tests do not depend on a bluetooth dongle or a sensor.
These unit tests are run on TravisCI.
These tests depend on the presence of the real Xiaomi Mi sensors and a Bluteooth LE dongle. To run these tests call 'tox -e integration_tests -- --mac='. These test are NOT run on Travis CI, as they require additional hardware.