How to note expected failures in SUnit?

How can I mark unit test in SUnit (or phexample) as expected failures?

+5
source share
1 answer

Overwrite expected errors in your test. Here is an example in WeakSetTest:

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

Update:

Starting with Pharo 1.2 , you can also add pragma to the test method:

testDontWork
    <expectedFailure>
    self assert: 3 equals: 4
+4
source

All Articles