MycroftAI / mycroft-core

Mycroft Core, the Mycroft Artificial Intelligence platform.
https://mycroft.ai
Apache License 2.0
6.52k stars 1.27k forks source link

unit tests run 3 times #154

Closed clusterfudge closed 8 years ago

clusterfudge commented 8 years ago

When using the start.sh unittest command or invoking the test script directly, unit tests are executed 3 times. This is happening because the runner has been put into the init for the root module, and it gets imported and executed multiple times (the original script did not check if name == main, and was copied to a new location).

aatchison commented 8 years ago

Fixed by: https://github.com/MycroftAI/mycroft-core/pull/155