|
From: Chris C. <ch...@w3...> - 2009-10-21 23:17:52
|
You're right, that does seem broken. I haven't tested it myself but from the code you posted you should get a failure in test_m1 but not in test_m2. It's as if SimpleTest is not resetting state correctly between the test methods and it thinks it's still waiting for an error to be raised. On 22/10/2009, at 2:37 AM, Nicolas Terray wrote: > 2009/10/21 Jason Sweat <jsw...@ya...>: >> Hi Nicolas, >> >> Your code throws an exception, and does not raise an error, so the >> unit test is telling you that. Everything appears to be working as >> expected with SimpleTest. >> > > Why the Fail message speaks about test_m2 ? (tests shouldn't be > independent?) > Why does it say "Expected true, got [Boolean: false]" ? (I didn't make > any assertion about True or False values) > Why does my test go green if i remove the function test_m2() ? > > Thanks, > Nicolas > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |