SitePoint Sponsor

User Tag List

Results 1 to 21 of 21

Thread: SimpleTest

  1. #1
    simple tester McGruff's Avatar
    Join Date
    Sep 2003
    Location
    Glasgow
    Posts
    1,690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SimpleTest

    Ooooh!

    Aaaaah!

    Mmmmmm...

    (I finally took some time off to get to grips with SimpleTest).

  2. #2
    SitePoint Enthusiast lacerus's Avatar
    Join Date
    Aug 2003
    Location
    Hamburg
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you been drinking, boy?!

  3. #3
    simple tester McGruff's Avatar
    Join Date
    Sep 2003
    Location
    Glasgow
    Posts
    1,690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try it: you'll see.

  4. #4
    Non-Member
    Join Date
    Jan 2004
    Location
    Planet Earth
    Posts
    1,764
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll stick to the booze, thank you very much

  5. #5
    SitePoint Addict been's Avatar
    Join Date
    May 2002
    Location
    Gent, Belgium
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    McGruff, that's about the exact same feeling I had when I first started using SimpleTest, what a suit!

    I've tried hinting to use SimpleTest here and there, but all the hints in the world don't seem to convert people, that is until their first experiences trying to see "What all the fuzz is about"
    Per
    Everything
    works on a PowerPoint slide

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

    Wow - two's company, but three's a following .

    Quote Originally Posted by been
    ...but all the hints in the world don't seem to convert people, that is until their first experiences trying to see "What all the fuzz is about"
    Here is a great link on this...
    http://www.dhemery.com/articles/mana...gh_change.html

    yours, Marcus

    p.s. Thanks. I am not too proud to admit that I like good comments amongst my bug reports .
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  7. #7
    SitePoint Addict been's Avatar
    Join Date
    May 2002
    Location
    Gent, Belgium
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Marcus, I enjoyed that read very much, the article you linked to was more relevant to me personally than you probably intended, I'm finding myself in quite some Chaos for the moment

    For me SimpleTest, as a whole package, was definitely the Transforming Idea in the Satir Change Model.
    I also noticed a lot of similarities between TDD and the "Managing Yourself Through Practice and Integration" paragraph, things like:
    - Mistakes are not failure, they are feedback.
    - Practice one new thing at a time, so you can make sense of the results you get. If you change too many things at once, it is very difficult to know how each change affected the results.
    - You need the satisfaction of completing a successful change now and then.
    Coincidence maybe?

    Btw, sorry to here about the bug reports, but no worries: you could use tests, squashing bugs before they go out, or so I've seen someone mentioning it here once or twice
    Per
    Everything
    works on a PowerPoint slide

  8. #8
    SitePoint Member WildMaple's Avatar
    Join Date
    Jul 2004
    Location
    peking
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb great

    now i am thinking of replacing the slow JUnit.

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

    Quote Originally Posted by been
    Btw, sorry to here about the bug reports, but no worries: you could use tests, squashing bugs before they go out, or so I've seen someone mentioning it here once or twice
    I walked into that one didn't I?

    Actually it is mostly (ahem) half finished stuff and my poor understanding of HTTP protocols. And any new bugs go straight into the test suite...

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

  10. #10
    SitePoint Zealot sike's Avatar
    Join Date
    Oct 2002
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lastcraft
    Hi...



    I walked into that one didn't I?

    Actually it is mostly (ahem) half finished stuff and my poor understanding of HTTP protocols. And any new bugs go straight into the test suite...

    yours, Marcus
    (;
    so you dont go for test driven development all the time?

    sike

  11. #11
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everything can be test driven, and yet bugs can come from:
    a) boundary conditions you did not anticipate or test for
    or b) incorrect tests to begin with (i.e. you tested for a behavior that the user does not want to see in the final result, or incompleete tests based on not understanding the full requirement)

    HTH
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  12. #12
    SitePoint Evangelist
    Join Date
    May 2004
    Location
    New Jersey, USA
    Posts
    567
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sike
    (;
    so you dont go for test driven development all the time?

    sike
    I believe Marcus is pioneering a new agile development methodology: bug-driven development.

  13. #13
    does not play well with others frezno's Avatar
    Join Date
    Jan 2003
    Location
    Munich, Germany
    Posts
    1,391
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Austin_Hastings
    bug-driven development.
    could be me sometimes
    We are the Borg. Resistance is futile. Prepare to be assimilated.
    I'm Pentium of Borg.Division is futile.Prepare to be approximated.

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

    Quote Originally Posted by sike
    (;
    so you dont go for test driven development all the time?
    Well you test for feature A. You test for feature B. So now you have to go back and add a test for feature A and B at the same time. That takes more time and sometimes the test suite is left catching up trying to confirm features that might work, but are not officially supported yet (damn users).

    Actually my code is written to some kind of test these days. Trouble is, if the test is wrong...well things get tricky with a secure, framed, authenticated, redirected, proxied, cookied pages sometimes . The code matches the tests though. Hey, it's a start!

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

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

    Quote Originally Posted by sweatje
    Everything can be test driven, and yet bugs can come from:
    a) boundary conditions you did not anticipate or test for
    or b) incorrect tests to begin with (i.e. you tested for a behavior that the user does not want to see in the final result, or incompleete tests based on not understanding the full requirement)
    Absolutely (haven't spread enough rep to give you any more). Thanks for bailing me out .

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

  16. #16
    simple tester McGruff's Avatar
    Join Date
    Sep 2003
    Location
    Glasgow
    Posts
    1,690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thought it best to reply to some SimpleTest comments here http://www.sitepoint.com/forums/showthread.php?t=179579 in this thread.

    Lastcraft was saying that he's "converted" very few php programmers to unit testing, and those that do use it tend to be experienced in several languages.

    That's quite a surprise, to me.

    I haven't fully gotten into the methodology of test driven development yet but just the ability to test more thoroughly within a proper framework and the ability to refactor while a test case keeps you on the straight and narrow is fantastic.

    My programming background is pretty limited - a couple of years learning php - but unit testing has been one of those discoveries you make along the OOP way that leaves you with a big cheesy grin.

  17. #17
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Stillwater, MN
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd like to get into unit testing, but I'm new to it. Are there any starting guides for unit testing?

  18. #18
    simple tester McGruff's Avatar
    Join Date
    Sep 2003
    Location
    Glasgow
    Posts
    1,690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could drink some beer: http://www.phplondon.org/wiki/BeerExample

    .. and take a look at http://www.lastcraft.com/ for links to download SimpleTest + docs.

  19. #19
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some projects that use SimpleTest suites are:
    SImpleTest itself (eat your own dog food )
    WACT - with some very neat continuous integration stuff in the works
    datacache - a small project I wrote as the basis for a conference presentation, but all developed using TDD

  20. #20
    simple tester McGruff's Avatar
    Join Date
    Sep 2003
    Location
    Glasgow
    Posts
    1,690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    // oops double post

  21. #21
    simple tester McGruff's Avatar
    Join Date
    Sep 2003
    Location
    Glasgow
    Posts
    1,690
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PS: if you've got a simple class stick it up and I'll see if I can write a test case for it.


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
  •