mamba-runner

Measure time execution for unittest tests


Keywords
unittest, timing, time, mamba, tests, runner
License
MIT
Install
pip install mamba-runner==0.0.2

Documentation

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.