【问题标题】:Where are the ##teamcity[... messages coming from in Pycharm with pytest run/debug logs?Pycharm 中带有 pytest 运行/调试日志的 ##teamcity[... 消息在哪里?
【发布时间】:2019-07-09 02:15:15
【问题描述】:

我没有安装 teamcity 或 teamcity-messages。

测试运行器是pytest。

它们确实携带有用的信息。只是想知道他们来自哪里。

Python 2.7.9 in pyenv
PyCharm 2019.1.2 Pro
Build #PY-191.7141.48
Macbook pro Mojave
Pytest 4.5.0

【问题讨论】:

    标签: python logging pycharm pytest


    【解决方案1】:

    它是teamcity.messages.TeamcityServiceMessages 包装对象,在pytest_plugin.py 模块中使用。搜索self.teamcity 用法,例如

    def pytest_collection_modifyitems(self, session, config, items):
        self.teamcity.testCount(len(items))

    报告为进度计算等收集的测试总量。

    【讨论】:

    • 谢谢!这就是我一直在寻找的。​​span>
    • 很高兴能帮上忙!
    猜你喜欢
    • 1970-01-01
    • 2011-07-11
    • 1970-01-01
    • 2020-04-25
    • 1970-01-01
    • 2014-01-28
    • 1970-01-01
    • 2014-05-02
    • 2015-01-06
    相关资源
    最近更新 更多