pygments lexer用于pytest输出。

pygments-pytest的Python项目详细描述


Build StatusCoverage Status

pygments pytest

pygments lexer用于pytest输出

some demos!或者 see it in action on pytest.org

安装

pip install pygments-pytest

用法

此库提供名为pytest的pygments lexer。

..code-block::pytest    $ pytest test.py    ========================== test session starts ===========================    platform linux -- Python 3.6.6, pytest-4.0.1.dev43+g0d529847.d20181123, py-1.7.0, pluggy-0.8.0    rootdir: /home/asottile/workspace/pytest, inifile: tox.ini    collected 1 item    test.py .                                                          [100%]    ======================== 1 passed in 0.01 seconds ========================

这个库还提供了sphinx扩展。可以通过添加 'pygments_pytest'conf.py中的extensions设置。

可以使用sphinx设置调整颜色(在conf.pypygments_pytest_ansi_colors

pygments_pytest_ansi_colors={'Cyan':'#06989a','Green':'#4e9a06','Red':'#c00','Yellow':'#c4A000',}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java将变量从一个类发送到另一个类   使用Java Kubernetes客户端Api部署pod   sql如何从oracle检索图像并在java框架中显示   java更改Clover检测类的位置   java安卓位置。getAccuracy()返回1   运行时。不支持Java ME 8上的exec()。还有别的选择吗?   bdd在Java中运行Cucumber时修改CucumberOptions标记   在java中将方法更改为运行时异常   构造函数类中的Java NullPointerException   java SetResizeable(false)不会阻止双击后的帧还原   java智能卡终端移除:SCARD_E_无服务卡例外   Java正则表达式和组   爪哇骑士巡回赛   端口8443上通过ssl的java Spring安全登录在使用http协议的端口8080上无法识别   java如何确定读取文件的哪一行特定行