如截图中所示,pytest写入日志文件中的error日志,报错部分显示为红色,这个要怎么设置呢?控制台打印那里也可以设置成红色吗?
platform win32 -- Python 3.12.1, pytest-8.3.2, pluggy-1.5.0
cachedir: .pytest_cache
rootdir:
configfile: pytest.ini
plugins: allure-pytest-2.13.5
collecting ... collected 2 items
相似问题