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.
  • N Nagy Vilmos

    Never, ever test your code, that way you have more time to write rubbish!

    veni bibi saltavi

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #10

    Nagy Vilmos wrote:

    Never, ever test your code, that way you have more time to write rubbish drink Gin!

    FTFY! OT: How did the dentist go?

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

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    N 1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      Nagy Vilmos wrote:

      Never, ever test your code, that way you have more time to write rubbish drink Gin!

      FTFY! OT: How did the dentist go?

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

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #11

      Two deep rooted buggers removed with large pliers and 8 novacains

      veni bibi saltavi

      OriginalGriffO 1 Reply Last reply
      0
      • N Nagy Vilmos

        Two deep rooted buggers removed with large pliers and 8 novacains

        veni bibi saltavi

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #12

        And when does the dentist get out of intensive care?

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

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • V VijayPd

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

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

          Member 11547329 wrote:

          Is Unit Testing is most boring activity for Developer

          Whenever I am bored doing programming, I ask myself, why can't the computer do this, which has led to some interesting tools over the years. I still don't see why we don't have tools that generate the unit tests for us. I mean, it really isn't that hard if we were only to apply ourselves to the problem. Marc

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

          R 1 Reply Last reply
          0
          • A Afzaal Ahmad Zeeshan

            Funny thing is, I don't even know what "_Unit tests_" are. :laugh: I did go to [Wikipedia](https://en.wikipedia.org/wiki/Unit\_testing) to learn something... Ended up yawning! :zzz: There was no challenge, just boring text... _[Lorem ipsum](https://en.wikipedia.org/wiki/Lorem\_ipsum)_ sounds better than that.

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

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

            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!

            A V D C 4 Replies 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!

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

              I will try yawning enough before clicking on the link... ;) Thank you very much (have a +1 as thank you) for your e-book, Marc. I will give it a read thoroughly right away. :)

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

              M 1 Reply Last reply
              0
              • A Afzaal Ahmad Zeeshan

                I will try yawning enough before clicking on the link... ;) Thank you very much (have a +1 as thank you) for your e-book, Marc. I will give it a read thoroughly right away. :)

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

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

                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 1 Reply Last reply
                0
                • V VijayPd

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

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #17

                  I test my unit frequently... :omg: Oh! You mean code! Ummm, yeah, I do that too. :-O

                  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!

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

                    Hi Afzaal, Cool Answer :)

                    1 Reply Last reply
                    0
                    • V VijayPd

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

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

                      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 1 Reply Last reply
                      0
                      • M Marc Clifton

                        Member 11547329 wrote:

                        Is Unit Testing is most boring activity for Developer

                        Whenever I am bored doing programming, I ask myself, why can't the computer do this, which has led to some interesting tools over the years. I still don't see why we don't have tools that generate the unit tests for us. I mean, it really isn't that hard if we were only to apply ourselves to the problem. Marc

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

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

                        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 1 Reply Last reply
                        0
                        • 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
                                          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