为nosetests提供彩色输出
项目描述
rednose 是一个为添加颜色(和可读性)到 nosetest 控制台结果的 nosetests 插件。
安装
pip install rednose
或从源代码安装
python setup.py install
Rednose 正式支持 Python 2.7、3.4 和 3.5。
用法
nosetests --rednose
或
export NOSE_REDNOSE=1 nosetests
Rednose 默认使用自动着色,只有在终端上运行时才会使用颜色(即不是将其管道到文件)。要控制着色,请使用以下之一
nosetests --rednose --force-color nosetests --no-color
(您也可以通过设置环境变量 NOSE_REDNOSE_COLOR 为 'force' 或 'no' 来控制此功能)
Rednose 默认打印相对于工作目录的文件路径。如果要在跟踪中打印完整路径,请使用
nosetests --rednose --full-file-path
Rednose 默认为跳过的测试打印错误样式格式化,要抑制此操作请使用
nosetests --rednose --hide-skips
Rednose 支持在运行中以及结束时打印测试结果,要启用它请使用
nosetests --rednose --immediate
项目详情
关闭
rednose-1.3.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 6da77917788be277b70259edc0bb92fc6f28fe268b765b4ea88206cc3543a3e1 |
|
MD5 | 11f9d74f6a7241093afa6529f2c2f282 |
|
BLAKE2b-256 | 3aa84b73ae7466c2e9b63b3c4d66040d1c0eda1f764812353753702546d8c87f |