On 11/07/13 07:32, Marcus Denker wrote:
On Jul 11, 2013, at 8:26 AM, Stéphane Ducasse <[email protected]> wrote:
I would really like to have Sunit 5 in Pharo.
Of course we added lots of things to Sunit, so this means rewriting tests.
(e.g. skip).
And we will get the sunit* methods back…
You sure? Because back in ESUG in Barcelona, Niall spent a spent a *lot*
of time with variaos people re-checking whether there is a common method
in all supported dialects so we may kill as many of those a possible.
I hate them :-)
Stef
On Jul 10, 2013, at 6:45 PM, Jan Vrany <[email protected]> wrote:
What you want is a TAssertable>>#should:raise: that:
- takes a one arg block as second argument that is evaluated with the
exception thrown
- fails if no exception is raised
Then please call it #should:raise:suchThat:
That's what is in upcoming SUnit 5.0 [1]
Also I would avoid using traits in SUnit, this is
non-portable. The TestAsserter class was introduced already
in SUnit 4.0. Indeed, only if you at all care about having SUnit in sync
with other dialects :-)
Best, Jan
[1]:
https://swing.fit.cvut.cz/hg/stx.goodies.sunit/file/fb932a5daa97/TestAsserter.st#l139