5
如何将SUnit(或phexample)中的单元测试标记为预期失败?如何在SUnit中标记预期的失败?
如何将SUnit(或phexample)中的单元测试标记为预期失败?如何在SUnit中标记预期的失败?
在您的测试中覆盖expectedFailures。有一个在WeakSetTest一个例子:
expectedFailures
"such tests work in Squeak"
^#(testDoAfter testIncludes)
更新:
As of Pharo 1.2,你还可以添加编译到测试方法:
testDontWork
<expectedFailure>
self assert: 3 equals: 4