[squeak-dev] The Trunk: SUnit-cmm.90.mcz

Frank Shearar frank.shearar at gmail.com
Wed Feb 6 20:43:13 UTC 2013


On 5 February 2013 03:47,  <commits at source.squeak.org> wrote:
> Chris Muller uploaded a new version of SUnit to project The Trunk:
> http://source.squeak.org/trunk/SUnit-cmm.90.mcz
>
> ==================== Summary ====================
>
> Name: SUnit-cmm.90
> Author: cmm
> Time: 4 January 2013, 3:33:36.616 pm
> UUID: 8533f0b4-2587-412b-b465-4ad7f20331d0
> Ancestors: SUnit-ul.89
>
> - Do not wipe out pre-initialized state on TestCases.  Tests do not need to be prevented from running more than once if proper setUp/tearDown methods are present.
>
> =============== Diff against SUnit-ul.89 ===============
>
> Item was changed:
>   ----- Method: TestCase>>debug (in category 'running') -----
>   debug
> +       self resources do:
> +               [ : res | res isAvailable ifFalse: [ ^ res signalInitializationError ] ].
> +       [ self runCase ] ensure:
> +               [ self resources do:
> +                       [ : each | each reset ] ]!
> -       self resources do: [:res |
> -               res isAvailable ifFalse: [^res signalInitializationError]].
> -       [(self class selector: testSelector) runCase]
> -               ensure: [self resources do: [:each | each reset]]
> -                       !
>
>

I think this breaks a test:
http://build.squeak.org/job/SqueakTrunk/148/testReport/junit/SUnit.Tests/SUnitTest/testIsNotRerunOnDebug/

Error Message

Assertion failed
Stacktrace

SUnitTest(TestCase)>>signalFailure:
SUnitTest(TestCase)>>assert:
SUnitTest>>testRanOnlyOnce
SUnitTest(TestCase)>>performTest
[] in [] in SUnitTest(TestCase)>>runCase
BlockClosure>>on:do:
[] in SUnitTest(TestCase)>>timeout:after:
BlockClosure>>ensure:
SUnitTest(TestCase)>>timeout:after:
[] in SUnitTest(TestCase)>>runCase
BlockClosure>>ensure:
SUnitTest(TestCase)>>runCase
[] in SUnitTest(TestCase)>>debug
BlockClosure>>ensure:
SUnitTest(TestCase)>>debug
SUnitTest>>testIsNotRerunOnDebug
SUnitTest(TestCase)>>performTest

frank


More information about the Squeak-dev mailing list