Slashdot Mirror


How Can I Make Testing Software More Stimulating?

An anonymous reader writes "I like writing software. In fact, I revel in it. However, one thing has always kept me back from being able to write the best software I possibly can: testing. I consider testing to be the absolute bane of my existence. It is so boring and un-stimulating that I usually skip it entirely, pass the testing off to someone else, or even worse, if I absolutely have to test, I do a very poor job at it. I know I'm not that lazy, as I can spend hours on end writing software, but there's something about testing that makes my mind constantly want to wander off and think about something else. Does anyone have any tips on how I can make non-automated testing a little bit more stimulating so I can at least begin to form a habit of doing so?"

9 of 396 comments (clear)

  1. sharks with lasers by master_kaos · · Score: 5, Funny

    just imagine if you don't test giant sharks with lasers will attack you.. with that stimulate you enough?

  2. Re:You can't? by Anonymous Coward · · Score: 5, Funny

    Wear a different hat each day.

  3. More bugs by MichaelSmith · · Score: 3, Funny

    Clearly there aren't enough bugs in the software you are testing. As an experienced C programmer I can help fix this problem...

    1. Re:More bugs by croftj · · Score: 4, Funny

      Let me guess, you can do that by writing your code in java or C#

      --
      -- Many men would appreciate a woman's mind more if they could fondle it
  4. Unit testing achievements by hansamurai · · Score: 5, Funny

    http://exogen.github.com/nose-achievements/

    *
    Instant Feedback
    A suite of at least 50 tests takes less than a second to run.
    *
    Coffee Break
    The suite takes between 5 and 15 minutes to run.
    *
    Take a Walk
    The suite takes between 15 and 60 minutes to run.
    *
    Take a Nap
    The suite takes between 1 and 5 hours to run.
    *
    Take a Vacation
    The suite takes at least 3 days to run.
    *

    Coming soon!
    Anticipation
    One test in a suite of at least 10 is slow, and all the rest pass.

    Time

    *
    Night Shift
    Make a failing suite pass between midnight and 5am.
    *
    Punctuality
    Make a failing suite pass at 9am (give or take a minute).

    Failure

    *
    Complete Failure
    All tests in a suite of 50 to 999 fail.
    *
    Epic Fail
    All tests in a suite of at least 1,000 fail.
    *
    Minor Letdown
    All tests in a suite of 10 to 99 pass...except the last.
    *
    Major Letdown
    All tests in a suite of at least 100 pass...except the last.
    *
    Happy Ending
    All tests in a suite of at least 10 fail...except the last.
    *

    Coming soon!
    Heisenbug
    Make a passing suite fail without changing anything.

    Errors

    *
    Sausage Fingers
    Cause at least 2 distinct syntax errors in a single run.
    *
    To Understand Recursion
    Exceed the maximum recursion depth.
    *

    Coming soon!
    To Err is Human
    Cause all tests in a suite of at least 50 to fail with a single error.

    Size

    *
    My God, It’s Full of Dots
    The suite has at least 2,001 passing tests.

    Frequency

    *

    Coming soon!
    OCD
    Run the suite at least 5 times in the spa

  5. Re:You can't? by sohp · · Score: 4, Funny

    Wear a different hat each day.

    I put on my robe and wizard hat.

  6. Re:Then you are lazy. by R.Mo_Robert · · Score: 4, Funny

    or another title+table+paragraph in Word?

    Yer documentin' it wrong.

    --
    R.Mo
  7. Re:Go work for a porn website by hedronist · · Score: 5, Funny

    Actually it's just the opposite. It's like working in a candy factory and quickly getting completely bored/sick of the candy. I did one site where we were having problems with certain videos in different browsers and I swear to God that there was one clip of some really hot anal action that I got *really* sick of. After about the 3rd time I would watch about 5 seconds of it, see if the problem was manifesting, and then be back in the editor.

    Now I watch whale documentaries to get my jollies. ... Wait! What?

  8. Re:Too close to the subject... by tqk · · Score: 3, Funny

    So I like the "test driven development" approach.

    I like the "Ethel" approach (I may have got her name wrong; sorry $ethel).

    The story was there was this great tester lady, and when she found a bug she pounced on you "Ah hah!" like. She really took her job seriously.

    The developers loved her. Go figger.

    No, you can't definitively test your code. That's what users / testers are for. You can only ensure it works, within your limited space of $works. That's where $ethel comes in.

    --
    "Tongue tied and twisted, just an Earth bound misfit ..." -- Pink Floyd.