3 默认行为是等到整个测试套件完成后才打印出所有堆栈跟踪。每次测试完成后,我似乎无法找到打印出堆栈轨迹的选项。 -s没有帮助。如何使py.test打印堆栈跟踪测试失败/错误发生? 来源 2014-10-28 Andrew Magee
2 结帐pytest-instafail。 :) 来源 2014-10-28 14:19:53 +1 还pytest-糖的另一承担这一点。 – flub 2014-10-28 20:54:09 +0 这些都很美:) – 2014-10-29 01:06:09
还pytest-糖的另一承担这一点。 – flub 2014-10-28 20:54:09
这些都很美:) – 2014-10-29 01:06:09