make unittest formatted and colorful output
Project description
colorunit: A nose plugin
=============================
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
Without --with-colorunit, the output will be the original
report!
Note:
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]
Thanks!
--------------------
- Vim 7.4
- stackedit
- nose
- colorama
LICENSE
-----------------------
- APACHE LICENSE VERSION 2.0
- Also see LICENSE file
=============================
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
Without --with-colorunit, the output will be the original
report!
Note:
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]
Thanks!
--------------------
- Vim 7.4
- stackedit
- nose
- colorama
LICENSE
-----------------------
- APACHE LICENSE VERSION 2.0
- Also see LICENSE file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nose-colorxunit-0.1.4.tar.gz
(9.0 kB
view hashes)