Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why Unit Test

Why Unit Test

Scheduled Pinned Locked Moved The Lounge
testingbeta-testing
32 Posts 18 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Ravi Bhavnani

    Marc Clifton wrote:

    I still don't see why we don't have tools that generate the unit tests for us.

    Clickety[^] :) /ravi

    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #21

    Ravi Bhavnani wrote:

    Clickety[^]

    True, but I've never tried, as I expect to be disappointed. Have you tried it? Marc

    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

    R D 2 Replies Last reply
    0
    • R Ravi Bhavnani

      Boring beats staying up till 4:00am trying to fix a critical bug in production. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      V Offline
      V Offline
      VijayPd
      wrote on last edited by
      #22

      Ravi, I agree wid u. I also face this problem several times.

      1 Reply Last reply
      0
      • M Marc Clifton

        Ravi Bhavnani wrote:

        Clickety[^]

        True, but I've never tried, as I expect to be disappointed. Have you tried it? Marc

        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #23

        No, I haven't tried it.  I've been building my unit tests manually so far.  Admittedly, I don't test every method and property - just (what I deem to be) points of failure. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        • M Marc Clifton

          Afzaal Ahmad Zeeshan wrote:

          Ended up yawning!

          I hope my e-book[^] on the subject isn't a yawner! ;) Marc

          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

          D Offline
          D Offline
          Daniel Pfeffer
          wrote on last edited by
          #24

          Thanks for the link. It's always useful to read a different perspective on an important subject.

          If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            No, the most boring activity a developer can be involved in is a four hour meeting you have to attend, of which the last five minutes are relevant to your job. If you are lucky. And then ***someone*** will say "oh, just one other thing..." And that'll add another hour or two.

            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

            B Offline
            B Offline
            Behzad Sedighzadeh
            wrote on last edited by
            #25

            You are absolutely right!

            Behzad

            1 Reply Last reply
            0
            • V VijayPd

              Is :wtf: Unit Testing is most boring activity for Developer

              M Offline
              M Offline
              menomey
              wrote on last edited by
              #26

              booooring

              1 Reply Last reply
              0
              • M Marc Clifton

                Afzaal Ahmad Zeeshan wrote:

                Ended up yawning!

                I hope my e-book[^] on the subject isn't a yawner! ;) Marc

                Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                C Offline
                C Offline
                carlospc1970
                wrote on last edited by
                #27

                oh! Thank you! :) :thumbsup:

                1 Reply Last reply
                0
                • M Marc Clifton

                  Ravi Bhavnani wrote:

                  Clickety[^]

                  True, but I've never tried, as I expect to be disappointed. Have you tried it? Marc

                  Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                  D Offline
                  D Offline
                  Dan Neely
                  wrote on last edited by
                  #28

                  I haven't either; but it looks like it's just a test stub generator. You'd still have to do the hard work of writing any non-trivial setup code, and then actually writing meaningful test content. The one in VS08/10 was a major waste of time IMO; and it appears MS agrees with me since based on the comments there they yanked it from 2012. I've also played a bit with MS's automagic unit testing tool back around the New Year. While it fell well short of its "cover your legacy code in a single button click" hype; if you're writing readily testable code now it seemed like it might be able to generate good test coverage of it. Things like non-trivial state setup, logic in winform event handlers, or classes with tight coupling to the file system all defeated it; unfortunately my un-unit tested legacy .net code is riddled with those constructs making it mostly useless to me. (Even aside from only having MSDN pro - and the feature apparently being limited to the rebranded Premium tier.)

                  Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

                  1 Reply Last reply
                  0
                  • V VijayPd

                    Is :wtf: Unit Testing is most boring activity for Developer

                    M Offline
                    M Offline
                    madprogrammi
                    wrote on last edited by
                    #29

                    I've never unit tested. Unless running the program in a debugger, handing my keyboard to a small child, and telling them "Smash a ton of keys" counts. :laugh:

                    When I talk to people who don't even know what source code is, I open an editor window and say "This is what we go through every time you find a bug!"

                    1 Reply Last reply
                    0
                    • V VijayPd

                      Is :wtf: Unit Testing is most boring activity for Developer

                      S Offline
                      S Offline
                      SeattleC
                      wrote on last edited by
                      #30

                      No, there are worse things many times more boring than unit testing. Like spending three months looking for a decent job because your last company imploded due to all the unfixed bugs. Like spending a week hunting for a bug in your colleague's code who thought unit testing was boring so he didn't bother. Like waiting six months for your cool new feature to go live because your testing organization only does system test, and therefore can only afford to release twice a year.

                      1 Reply Last reply
                      0
                      • M Marc Clifton

                        Afzaal Ahmad Zeeshan wrote:

                        Marc. I will give it a read thoroughly right away.

                        Heh, well, it's ok if you yawn through it too. But I would enjoy hearing your thoughts about it! Marc

                        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                        A Offline
                        A Offline
                        Afzaal Ahmad Zeeshan
                        wrote on last edited by
                        #31

                        I have read that eBook, that was an amazing and outstanding eBook of yours Marc. Now, I really know what Unit is, what Test is and what Unit Test is. :) Thanks a lot Marc, for such extraordinary help of yours. :)

                        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

                        1 Reply Last reply
                        0
                        • V VijayPd

                          Is :wtf: Unit Testing is most boring activity for Developer

                          T Offline
                          T Offline
                          TNCaver
                          wrote on last edited by
                          #32

                          A related question is: are there any studies that show implementing unit testing and TDD has decreased the number of bugs in released programs than old-fashioned testing methods?

                          If you think 'goto' is evil, try writing an Assembly program without JMP.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups