How fast are your unittest tests? Time it and make it faster!
This functionality is missing from Python's unittest module.
mamba-runner
is derived from black mamba snake
(don't click if you suffer to ophidiophobia!).
This snake runs very fast so should your tests! ;-)
Before:
After:
pip install mamba-runner
Add the mamba-runner
to your test runner:
from django.test.runner import DiscoverRunner # Django1.6's default from mamba_runner.django_runner import BlackMambaRunnerMixin class MyTestRunner(BlackMambaRunnerMixin, DiscoverRunner): pass
Use mamba_runner.runner.BlackMambaTestRunner
instead of unittest.TextTestRunner
.