If anybody is interested, I have also added a total at the bottom of the TestRunner summary with number of total test passed and failed. Very rewarding to see when the number of tests grows!! :-)
Giulio Cesare On Mon, Mar 30, 2009 at 8:55 PM, Per Cederberg <cederb...@gmail.com> wrote: > Thanks for the updated code Guilio! I'll have a look at it later on > and get back to you. > > I'm currently a bit absent from MochiKit-related work, but I'll be > back in a month or two I hope. Like most other people lurking around > here it seems that I'm working on one or two projects too many... :-) > > Cheers, > > /Per > > On Mon, Mar 30, 2009 at 2:39 PM, Giulio Cesare Solaroli > <giulio.ces...@gmail.com> wrote: >> Hello Per, >> >> I have been able to hack the SimpleTest.TestRunner code in order to be >> "recursive", that is I can now have a TestRunner load other >> TestRunners and not just SimpleTests as in the current code. >> >> I still have a strange problem with Firefox 3.08 where the number of >> successful tests reported is sometimes wrong, but otherwise it works >> fine. >> >> Attached you can find my updated version of TestRunner.js and >> SimpleTest.js, in case anyone is interested. >> >> Regards, >> >> Giulio Cesare >> >> >> >> >> >> On Thu, Feb 26, 2009 at 2:35 AM, Giulio Cesare Solaroli >> <giulio.ces...@gmail.com> wrote: >>> Hello Per, >>> >>> On Wed, Feb 25, 2009 at 7:54 PM, Per Cederberg <cederb...@gmail.com> wrote: >>>> >>>> Interesting that you're using SimpleTest! It is on my not-so-secret >>>> agenda for 1.5 to merge that into MochiKit.Test and create a public >>>> API for JS testing. >>> >>> Interesting; but SimpleTest is quite fine for my current needs >>> >>> >>>> To answer your question -- I think the tests/index.html file in the >>>> MochiKit distribution does this. It might not be all that elegant >>>> though. >>> >>> Nope. The tests/index.html files invoke the TestRunner.runTests method >>> on a list of "regular" html test files. >>> >>> What I need is a way to create a tests/index.html test suite, that >>> could include a call to (for example) tests/module1/index.html; where >>> the later file is structured just like the former. >>> >>> >>>> Be sure to let me know if you have any ideas regarding creating an >>>> improved testing API. >>> >>> At the moment our testing needs are fulfilled by SimpleTest api. The >>> only problem we have, is that sometimes tests fail silently, and if >>> you don't know the correct number of expected tests, you may miss some >>> errors. :-( >>> >>> But this is just an implementation issue. >>> >>> Regards, >>> >>> Giulio Cesare >>> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to mochikit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---