Python中文
首页
教程
问答
标签
搜索
登录
注册
Unittest中的自定义onFailure调用?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我现在正在写一些单元测试,我想每隔几分钟就运行一次。如果其中任何一个失败了,我想抓住引发的错误并对其进行一些定制处理(在我的例子中,发送警报)。有标准的方法吗?我一直在看unittest.TestResult测试结果,但没有找到任何好的示例用法。思想?你知道吗</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>我们使用连续集成服务器jenkins来完成这样的任务。它有类似cron的调度,并且可以在构建变得不稳定(测试失败)时发送电子邮件。对python的unittest模块进行了扩展,以生成jenkins支持的junit样式的xml报告。你知道吗</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何加速Python字符串匹配cod
10 回答
如何加速python嵌套循环?
7 回答
如何加速python循环
7 回答
如何加速python循环?
8 回答
如何加速Python执行?
6 回答
如何加速python数据帧中的嵌套循环?
10 回答
如何加速python曲线拟合二维数组?
10 回答
如何加速python的“turtle”功能,并在最后阻止它冻结
6 回答
如何加速python的启动和/或在加载库时减少文件搜索?
10 回答
如何加速python的执行
2 回答
如何加速python网络?
7 回答
如何加速python脚本并减少内存消耗?
1 回答
如何加速Python脚本迭代嵌套循环?
9 回答
如何加速Python请求
4 回答
如何加速Pywikibot?
10 回答
如何加速scipy.integrate.quad?
9 回答
如何加速scipy.ndimage.geometric_transform?
6 回答
如何加速scipy插值?
8 回答
如何加速SFTP传输?
5 回答
如何加速sklearn SVR?
2 回答