开发者

How to mark expected failures in SUnit?

开发者 https://www.devze.com 2023-01-21 16:21 出处:网络
How can I mark a unit test in SUnit (or phexample) as expec开发者_Python百科ted failures?Overwrite expectedFailures in your test. There\'s an example in WeakSetTest:

How can I mark a unit test in SUnit (or phexample) as expec开发者_Python百科ted failures?


Overwrite expectedFailures in your test. There's an example in WeakSetTest:

expectedFailures
    "such tests work in Squeak"
    ^ #(testDoAfter testIncludes )

Update:

As of Pharo 1.2, you can also add a pragma to the test method:

testDontWork
    <expectedFailure>
    self assert: 3 equals: 4
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号