An overview of the test frameworks used by mycroft-core.
Mycroft-core unit tests are located in
A helper command is provided in
mycroft-core/binto enable quick and simple access to the test runner. It is assumed that this directory is on your
If that is not the case, prepend all
mycroft-*commands with the path to your
mycroft-core/bindirectory or run the tests manually.
To execute all tests run:
To execute a single test file run:
mycroft-start singlueunittest path/to/test/file.py
The second argument points to the test file you wish to execute. Note that this is relative to your
If I was working on the audio utilities, I might run:
mycroft-start singlueunittest test/unittests/audio/test_utils.py
mycroft-starthelper commands are a convenience wrapper. They activate the Python virtual environment and run pytest.
The equivalent commands to run all tests would be:
The Mycroft integration test suite is called Voight Kampff. Currently this does explicitly cover mycroft-core, however Skills are tested, which indirectly tests a range of Mycroft's technologies.
For more detail on Voight Kampff see: