This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

WHAT?! ===

This is literally an exact clone of unittest (from Python 2.7), but with colors. (Now also compatible with Python 3!)

HOW?! ===

You literally use it in the exact same way as [unittest](http://docs.python.org/2/library/unittest.html).

INSTALLATION?! ===

You can just install it into your path or your sourced virtual environment with this extremely easy command:

pip install redgreenunittest

After that, just reference this package like a normal, regular old python package like this:

import redgreenunittest

If you do want to use it as a direct replacement for unittest without doing any extra work, you can just import like this:

import redgreenunittest as unittest

BUT WHAT ABOUT DJANGO?! ===

I assume you mean the Python framework. (Not that movie.) Remember when I said, “exact clone” before? I lied. There is one extra directory called “django” in there that contains a file called “simple.py”

If you want to use this as your test runner, and you’re already using unittest, you can literally drop this line of code into your settings.py file, and it will straight up work if you followed those installation instructions. In fact you could even skip the referencing step since Python is smart.

TEST_RUNNER=”redgreenunittest.django.runner.RedGreenDiscoverRunner”

Go ahead. Run your tests. Colors. It’s like we live in the future.

DJANGO < 1.6 ==

Running a Django version pre-1.6? Then you’ll want the simple runner.

TEST_RUNNER=”redgreenunittest.django.simple.RedGreenTestSuiteRunner”

CAVEATS?! ===

Ok, so if you’re using a vim gui like MacVim or GVim and its shell to run your tests, they’re going to look super weird. Sorry. You’re boned for colors in that shell. You can use [conque](https://code.google.com/p/conque/) if you want. I made it work using [zsh](http://www.zsh.org/) and [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) and some medium-level vim scripting.

The reason it sucks is because $TERM is set to dumb in the vim gui shell ([literally](http://stackoverflow.com/a/13382717/1687623)). So if you’re using any other shell where $TERM is set to dumb, you’re also going to be boned in that case.

You may be boned in other scenarios. My experience in this area is limited. Let me know if you find yourself boned in other situations. I may be able to help, or I can at least make a note in this README.

Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
redgreenunittest-0.1.1.macosx-10.9-intel.tar.gz (56.3 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Mar 21, 2014
redgreenunittest-0.1.1-py2.7.egg (69.2 kB) Copy SHA256 Checksum SHA256 2.7 Egg Mar 21, 2014
redgreenunittest-0.1.1.tar.gz (56.5 kB) Copy SHA256 Checksum SHA256 Source Mar 21, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting