/mamba-runner

How fast are your unittest tests?? Measure their execution time and make them faster.

Primary LanguagePythonMIT LicenseMIT

mamba-runner

https://pypip.in/version/mamba-runner/badge.png https://pypip.in/download/mamba-runner/badge.png

How fast are your unittest tests? Time it and make it faster!

Why?

This functionality is missing from Python's unittest module.

What?

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! ;-)

See?

Before:

https://github.com/mattack108/mamba-runner/raw/master/img/before_run.png

After:

https://github.com/mattack108/mamba-runner/raw/master/img/after_run.png

Try?

pip install mamba-runner

Django?

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

Other snake?

Use mamba_runner.runner.BlackMambaTestRunner instead of unittest.TextTestRunner.