SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Anyone hacked Test::Unit at all?

    Hi.

    I am trying to integrate Ruby's Test::Unit with SimpleTest. As a result I am having to dive into the Test::Unit code. My problem is that I cannot find any decent tutorials on say writing your own Runner.

    On poking into the innards I find the console runner is straightforward enough, but it seems to interact with both a RunnerMediator and the Result (a failure collection). I cannot quite discern the separation of concerns within these classes or any of the design decisions behind them. I assume there are good reasons for this complexity (either JUnit compatibility of GUI needs), so if anyone could shed some light, it would be a great help.

    My exact problems are:
    1) I need to find out the number of test cases without actually running them. The Tk runner seems to be able to figure this out, so I am exploring that thread of execution.
    2) I need to output the results as XML. I did a copy and paste of the Console runner and manage to get the tests, but with no grouping structure.

    I have contacted the author, Nathaniel Talbott, but am still waiting a reply.

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How about looking to the Ruby Talk mailing list for answers?
    douglas@desktop ~ $ emerge world
    www.practicalguile.com [Communication with code]

  3. #3
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi...

    Probably a good idea. I am not plugged into the Ruby forums yet. Where is it? Is it terribly high traffic? Where are the best Ruby hang outs?

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  4. #4
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •