Skip to content

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

License

Notifications You must be signed in to change notification settings

mlen108/mamba-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages