【发布时间】:2019-06-02 23:30:36
【问题描述】:
我正在尝试将pytest 测试集成到搅拌机下使用的一些代码中。由于搅拌机包装python的方式,我不得不从搅拌机调用的一些python代码中调用pytest。
Calling pytest from Python code
我已经成功设置了一个测试,一旦出现故障,它就会运行甚至正确断言。
E assert (1, 0, 1) == (0, 0, 1)
E At index 0 diff: 1 != 0
E Use -v to get the full diff
tests/test_pytest.py:11: AssertionError
但是,此结果不会通过搅拌机渗透回 TravisCI 工具,因此测试失败,因此它将测试标记为通过。这是“通过”的运行日志
https://travis-ci.org/douglaskastle/blender-fake-addon/builds/476605512
如何将来自搅拌机代码内部的pytest 的结果一直连接到 TravisCI 运行程序?
【问题讨论】:
标签: python python-3.x travis-ci blender