Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install nose-colorxunit

How to install nose-colorxunit

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install nose-colorxunit
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.2.0 Available View build log
0.2.0 Available View build log
 
Author
License
Apache License,Version 2.0
Imports
Lastest release
version 0.2.0 on Sep 20th, 2013

Why?

Why do I write this plugin for nose ,The reason is so sample that the nose original report is so ugly, what's the worse, not friendly for tester, actually python tester.

How?

How to use this nose plugin: colorunit, Only tree steps you need to follow:

Install colorunit:
1.1) Install with pip
pip install nose-colorxunit
1.2)Uninstall with pip
pip uninstall nose-colorxunit
2.1) Install with source

First, active your own python virtual environment if you have.

Then on the terminal type:

python setup.py build

python setup.py install

If you just want to install it as a super user or using sudo command, please think it again.

2.2) Uninstall with source

Just go to your own python virtual environment site-packages directory, and find nose_colorxunit-..-py..egg, then delete it.

Register colorunit [Optional]

Now this is optional, just write the following code snippet into Any one of your test files if you like, for example, test_demo.py.:

import nose
from colorunit import ColorUnit
if __name__ == '__main__':
    nose.main(addplugins=[ColorUnit()])
Run the test files
nosetests --with-colorunit

Note

Without --with-colorunit, the output will be the original report!

Be sure that you are working in your own python virtual environment

Connections

Name: Lesus

Email: walkingnine@gmail.com          |

Blog: http://my.oschina.net/swuly302/blog (Chinese)

If you have some good advice or idea, Welcome to communicate with me via email or be one of contributors!

Drawbacks

Only for python2., not supports python3..

TODO

Adding a decorator class or method for finding and showing these taken time over your expected taken time.

Logging the output into specific file

Issues

Only for Linux[Fixed v0.1.2];

Showing every test case taken time[Fixed v0.1.4]

Why it needs to be registered again. For more informations, Please see How : Register colorunit section [Fixed v0.1.4]

Snapshot

On Ubuntu:

Sample error page

On Windows XP:

Sample error page

Thanks!

Vim 7.4

stackedit

nose

colorama

LICENSE

APACHE LICENSE VERSION 2.0

Also see LICENSE file

Subscribe to package updates

Last updated Sep 20th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.