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. Developers Who Test (and Don't)

Developers Who Test (and Don't)

Scheduled Pinned Locked Moved The Lounge
beta-testingcomtestingquestioncareer
79 Posts 39 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 Offline
    R Offline
    raddevus
    wrote on last edited by
    #1

    I just started reading a very interesting book (Developer Testing: Building Quality Into Software (amazon)[^]) and the intro reminded me of a time I had a similar exchange with a dev.

    Jeff Langr said:

    One developer, however, quit two days later without saying a word to me. I was told that he said something to the effect that “I’m never going to write a test, that’s not my job as a programmer.” I was initially concerned that I’d been too eager (though I’d never insisted on anything, just attempted to educate). I no longer felt guilty after seeing the absolute nightmare that was his code, though.

    Back in the day when I was in QA, I approached a developer about a recent change he'd made to the code. Me: "Hey, can I get the data you used to test your changes?" Dev: "What data?" Me: "Well, you know. The data you used to test after you made the changes and did the build? I figure I can use it as a starting place for data I can send through to insure the changes work." Dev: "Oh. I didn't run any tests. That's for you to do. I built the thing and put it out there. Now, go test it." Me: :wtf: :~

    OriginalGriffO H R K R 26 Replies Last reply
    0
    • R raddevus

      I just started reading a very interesting book (Developer Testing: Building Quality Into Software (amazon)[^]) and the intro reminded me of a time I had a similar exchange with a dev.

      Jeff Langr said:

      One developer, however, quit two days later without saying a word to me. I was told that he said something to the effect that “I’m never going to write a test, that’s not my job as a programmer.” I was initially concerned that I’d been too eager (though I’d never insisted on anything, just attempted to educate). I no longer felt guilty after seeing the absolute nightmare that was his code, though.

      Back in the day when I was in QA, I approached a developer about a recent change he'd made to the code. Me: "Hey, can I get the data you used to test your changes?" Dev: "What data?" Me: "Well, you know. The data you used to test after you made the changes and did the build? I figure I can use it as a starting place for data I can send through to insure the changes work." Dev: "Oh. I didn't run any tests. That's for you to do. I built the thing and put it out there. Now, go test it." Me: :wtf: :~

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

      And these are the people who write the code used by your bank, your car, your life support machine ... Frightening, isn't it?

      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

      R W N S B 5 Replies Last reply
      0
      • OriginalGriffO OriginalGriff

        And these are the people who write the code used by your bank, your car, your life support machine ... Frightening, isn't it?

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

        R Offline
        R Offline
        raddevus
        wrote on last edited by
        #3

        OriginalGriff wrote:

        And these are the people who write the code used by your bank, your car, your life support machine

        You nailed it with that!!! Exactly. And it is scary.

        1 Reply Last reply
        0
        • R raddevus

          I just started reading a very interesting book (Developer Testing: Building Quality Into Software (amazon)[^]) and the intro reminded me of a time I had a similar exchange with a dev.

          Jeff Langr said:

          One developer, however, quit two days later without saying a word to me. I was told that he said something to the effect that “I’m never going to write a test, that’s not my job as a programmer.” I was initially concerned that I’d been too eager (though I’d never insisted on anything, just attempted to educate). I no longer felt guilty after seeing the absolute nightmare that was his code, though.

          Back in the day when I was in QA, I approached a developer about a recent change he'd made to the code. Me: "Hey, can I get the data you used to test your changes?" Dev: "What data?" Me: "Well, you know. The data you used to test after you made the changes and did the build? I figure I can use it as a starting place for data I can send through to insure the changes work." Dev: "Oh. I didn't run any tests. That's for you to do. I built the thing and put it out there. Now, go test it." Me: :wtf: :~

          H Offline
          H Offline
          HobbyProggy
          wrote on last edited by
          #4

          Ha! And my silly me is trying to get up a CI with unit test automation and code inspection. (Still working on the unit tests though :doh: ) How come i didn't know that it's not my job ... :laugh:

          Rules for the FOSW ![^]

          if(this.signature != "")
          {
          MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
          }
          else
          {
          MessageBox.Show("404-Signature not found");
          }

          R 1 Reply Last reply
          0
          • H HobbyProggy

            Ha! And my silly me is trying to get up a CI with unit test automation and code inspection. (Still working on the unit tests though :doh: ) How come i didn't know that it's not my job ... :laugh:

            Rules for the FOSW ![^]

            if(this.signature != "")
            {
            MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
            }
            else
            {
            MessageBox.Show("404-Signature not found");
            }

            R Offline
            R Offline
            raddevus
            wrote on last edited by
            #5

            HobbyProggy wrote:

            How come i didn't know that it's not my job

            You're such a naive dev thinking that you have to test. Here's the latest Mic-Drop Coding Methodology... Step 1 : Write Code Step 2 : Drop code -- I'm out! :laugh:

            1 Reply Last reply
            0
            • R raddevus

              I just started reading a very interesting book (Developer Testing: Building Quality Into Software (amazon)[^]) and the intro reminded me of a time I had a similar exchange with a dev.

              Jeff Langr said:

              One developer, however, quit two days later without saying a word to me. I was told that he said something to the effect that “I’m never going to write a test, that’s not my job as a programmer.” I was initially concerned that I’d been too eager (though I’d never insisted on anything, just attempted to educate). I no longer felt guilty after seeing the absolute nightmare that was his code, though.

              Back in the day when I was in QA, I approached a developer about a recent change he'd made to the code. Me: "Hey, can I get the data you used to test your changes?" Dev: "What data?" Me: "Well, you know. The data you used to test after you made the changes and did the build? I figure I can use it as a starting place for data I can send through to insure the changes work." Dev: "Oh. I didn't run any tests. That's for you to do. I built the thing and put it out there. Now, go test it." Me: :wtf: :~

              R Offline
              R Offline
              realJSOP
              wrote on last edited by
              #6

              Testing is pointless. By the time you're done writing the code to meet the requirements, the requirements change, and the changes remain a closely held secret until the day the code is scheduled to be delivered\submitted to be tested.

              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
              -----
              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
              -----
              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

              R K 2 Replies Last reply
              0
              • OriginalGriffO OriginalGriff

                And these are the people who write the code used by your bank, your car, your life support machine ... Frightening, isn't it?

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

                W Offline
                W Offline
                WiganLatics
                wrote on last edited by
                #7

                OriginalGriff wrote:

                used by your bank, your car, your life support machine

                User Acceptance Testing?

                W 1 Reply Last reply
                0
                • R raddevus

                  I just started reading a very interesting book (Developer Testing: Building Quality Into Software (amazon)[^]) and the intro reminded me of a time I had a similar exchange with a dev.

                  Jeff Langr said:

                  One developer, however, quit two days later without saying a word to me. I was told that he said something to the effect that “I’m never going to write a test, that’s not my job as a programmer.” I was initially concerned that I’d been too eager (though I’d never insisted on anything, just attempted to educate). I no longer felt guilty after seeing the absolute nightmare that was his code, though.

                  Back in the day when I was in QA, I approached a developer about a recent change he'd made to the code. Me: "Hey, can I get the data you used to test your changes?" Dev: "What data?" Me: "Well, you know. The data you used to test after you made the changes and did the build? I figure I can use it as a starting place for data I can send through to insure the changes work." Dev: "Oh. I didn't run any tests. That's for you to do. I built the thing and put it out there. Now, go test it." Me: :wtf: :~

                  K Offline
                  K Offline
                  Kevin Marois
                  wrote on last edited by
                  #8

                  I assume you're referring to Unit Testing, not "I ran it and it works on my machine" Based on my experience the majority of software shops don't do testing, meaning it's not a required part of the development experience. I just started a new position.. no unit testing. Last position... HAHAHA - Testing?? Are you kidding??? Who's got time for that? Previous position.... Some unit tests in some teams Previous position.... What's a Unit Test??? Previous position.... I'm working 60+ hours/week... I don't have time for that... Previous position.... Looks like it's running... Send it to QA. . . . and so on. I think that there's a stigma associated with Testing that the primary purpose of a developer is to write code, and testing isn't code.

                  If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                  R R 2 Replies Last reply
                  0
                  • R realJSOP

                    Testing is pointless. By the time you're done writing the code to meet the requirements, the requirements change, and the changes remain a closely held secret until the day the code is scheduled to be delivered\submitted to be tested.

                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                    -----
                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                    -----
                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                    R Offline
                    R Offline
                    raddevus
                    wrote on last edited by
                    #9

                    John Simmons / outlaw programmer wrote:

                    By the time you're done writing the code to meet the requirements, the requirements change

                    Oh, silly you. You're talking about real software that exists in the real world. Testing is only for vaporware. That way we can('t) be sure we got it right and wrong. :laugh:

                    OriginalGriffO 1 Reply Last reply
                    0
                    • K Kevin Marois

                      I assume you're referring to Unit Testing, not "I ran it and it works on my machine" Based on my experience the majority of software shops don't do testing, meaning it's not a required part of the development experience. I just started a new position.. no unit testing. Last position... HAHAHA - Testing?? Are you kidding??? Who's got time for that? Previous position.... Some unit tests in some teams Previous position.... What's a Unit Test??? Previous position.... I'm working 60+ hours/week... I don't have time for that... Previous position.... Looks like it's running... Send it to QA. . . . and so on. I think that there's a stigma associated with Testing that the primary purpose of a developer is to write code, and testing isn't code.

                      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                      R Offline
                      R Offline
                      raddevus
                      wrote on last edited by
                      #10

                      Kevin Marois wrote:

                      I think that there's a stigma associated with Testing that the primary purpose of a developer is to write code, and testing isn't code.

                      Yes, but the stigma of producing terrible code that literally crashes in production is far worse. The best kind of testing (and software development) occurs when a developer (no matter the level) literally thinks:

                      I _own_ this software and it represents me.

                      However, in corporate environments -- yes I work in one too -- this does not occur for many reasons: * dev is ignored anyways * dev has so many layers of management no one ever really talks to dev anyways * project is boring * project is doomed for other reasons anyways * there were no actual requirments created anyways, so anything could be accepted (screw it) * people in charge who are driving the project don't know anything about actual software dev anyways Too many more to list here.

                      D U P 3 Replies Last reply
                      0
                      • K Kevin Marois

                        I assume you're referring to Unit Testing, not "I ran it and it works on my machine" Based on my experience the majority of software shops don't do testing, meaning it's not a required part of the development experience. I just started a new position.. no unit testing. Last position... HAHAHA - Testing?? Are you kidding??? Who's got time for that? Previous position.... Some unit tests in some teams Previous position.... What's a Unit Test??? Previous position.... I'm working 60+ hours/week... I don't have time for that... Previous position.... Looks like it's running... Send it to QA. . . . and so on. I think that there's a stigma associated with Testing that the primary purpose of a developer is to write code, and testing isn't code.

                        If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                        R Offline
                        R Offline
                        realJSOP
                        wrote on last edited by
                        #11

                        At my last position, we were responsible for making sure the code compiled, ran without exceptions, and updated the UI as expected. At that point, we handed it over to Q/A who had test cases to run the code against. We had to do this because most of the changes were UI changes, and you can't really automate them. All tests were run with a video capture so we could re-run the videos to see what the user did to make the code fault. It worked pretty well.

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                        K 1 Reply Last reply
                        0
                        • R realJSOP

                          At my last position, we were responsible for making sure the code compiled, ran without exceptions, and updated the UI as expected. At that point, we handed it over to Q/A who had test cases to run the code against. We had to do this because most of the changes were UI changes, and you can't really automate them. All tests were run with a video capture so we could re-run the videos to see what the user did to make the code fault. It worked pretty well.

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                          K Offline
                          K Offline
                          Kevin Marois
                          wrote on last edited by
                          #12

                          Same with me on my last pos. And, the QA team was in India (:confused::confused: Don't ask me I didn't decide that) so after a check in we had to wait 24 hours for a testing cycle. I once knew a guy who sat next to me, and his idea of testing was to open a DOS Command Prompt, CD to the folder the app was in, and run the EXE, which then opened the app in Windows (It was a Windows Forms app). "It runs, so it's OK"

                          If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                          R 1 Reply Last reply
                          0
                          • K Kevin Marois

                            Same with me on my last pos. And, the QA team was in India (:confused::confused: Don't ask me I didn't decide that) so after a check in we had to wait 24 hours for a testing cycle. I once knew a guy who sat next to me, and his idea of testing was to open a DOS Command Prompt, CD to the folder the app was in, and run the EXE, which then opened the app in Windows (It was a Windows Forms app). "It runs, so it's OK"

                            If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                            R Offline
                            R Offline
                            realJSOP
                            wrote on last edited by
                            #13

                            Kevin Marois wrote:

                            "It runs, so it's OK"

                            Which is only slightly more useful than, "It compiles. Ship it!"

                            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                            -----
                            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                            -----
                            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                            1 Reply Last reply
                            0
                            • R raddevus

                              I just started reading a very interesting book (Developer Testing: Building Quality Into Software (amazon)[^]) and the intro reminded me of a time I had a similar exchange with a dev.

                              Jeff Langr said:

                              One developer, however, quit two days later without saying a word to me. I was told that he said something to the effect that “I’m never going to write a test, that’s not my job as a programmer.” I was initially concerned that I’d been too eager (though I’d never insisted on anything, just attempted to educate). I no longer felt guilty after seeing the absolute nightmare that was his code, though.

                              Back in the day when I was in QA, I approached a developer about a recent change he'd made to the code. Me: "Hey, can I get the data you used to test your changes?" Dev: "What data?" Me: "Well, you know. The data you used to test after you made the changes and did the build? I figure I can use it as a starting place for data I can send through to insure the changes work." Dev: "Oh. I didn't run any tests. That's for you to do. I built the thing and put it out there. Now, go test it." Me: :wtf: :~

                              R Offline
                              R Offline
                              R Giskard Reventlov
                              wrote on last edited by
                              #14

                              Interesting. I have always eaten my own dogfood wherever practical and try to get everyone around me to do the same. Most larger shops have had decent QA but there is no point in passing untested code to QA in the hope that it'll scrape by - it won't. I really don't understand the notion of cobbling code to together and passing it up the chain without, at the very least, checking to make sure it does something along the lines of what was required. [EDIT} Perhaps it's because I come from an engineering background. You would not even consider letting a creation out of the shop without thorough testing. Perhaps that's what needs to be ingrained into the kiddies at uni.

                              R 1 Reply Last reply
                              0
                              • R R Giskard Reventlov

                                Interesting. I have always eaten my own dogfood wherever practical and try to get everyone around me to do the same. Most larger shops have had decent QA but there is no point in passing untested code to QA in the hope that it'll scrape by - it won't. I really don't understand the notion of cobbling code to together and passing it up the chain without, at the very least, checking to make sure it does something along the lines of what was required. [EDIT} Perhaps it's because I come from an engineering background. You would not even consider letting a creation out of the shop without thorough testing. Perhaps that's what needs to be ingrained into the kiddies at uni.

                                R Offline
                                R Offline
                                raddevus
                                wrote on last edited by
                                #15

                                R. Giskard Reventlov wrote:

                                I really don't understand the notion of cobbling code to together and passing it up the chain

                                I can't get inside that mentality either. It's quite terrible. I think it's either: 1. complete Ego-driven dev with a seasoning of laziness or 2. complete Lazy-driven dev with a seasoning of ego. :laugh:

                                R M 2 Replies Last reply
                                0
                                • R raddevus

                                  R. Giskard Reventlov wrote:

                                  I really don't understand the notion of cobbling code to together and passing it up the chain

                                  I can't get inside that mentality either. It's quite terrible. I think it's either: 1. complete Ego-driven dev with a seasoning of laziness or 2. complete Lazy-driven dev with a seasoning of ego. :laugh:

                                  R Offline
                                  R Offline
                                  R Giskard Reventlov
                                  wrote on last edited by
                                  #16

                                  :laugh:

                                  1 Reply Last reply
                                  0
                                  • R raddevus

                                    Kevin Marois wrote:

                                    I think that there's a stigma associated with Testing that the primary purpose of a developer is to write code, and testing isn't code.

                                    Yes, but the stigma of producing terrible code that literally crashes in production is far worse. The best kind of testing (and software development) occurs when a developer (no matter the level) literally thinks:

                                    I _own_ this software and it represents me.

                                    However, in corporate environments -- yes I work in one too -- this does not occur for many reasons: * dev is ignored anyways * dev has so many layers of management no one ever really talks to dev anyways * project is boring * project is doomed for other reasons anyways * there were no actual requirments created anyways, so anything could be accepted (screw it) * people in charge who are driving the project don't know anything about actual software dev anyways Too many more to list here.

                                    D Offline
                                    D Offline
                                    den2k88
                                    wrote on last edited by
                                    #17

                                    Ok drop the mask who are you of my colleagues? Knock the Imperial march on the desk so I can recognize you!

                                    DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

                                    R 1 Reply Last reply
                                    0
                                    • D den2k88

                                      Ok drop the mask who are you of my colleagues? Knock the Imperial march on the desk so I can recognize you!

                                      DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

                                      R Offline
                                      R Offline
                                      raddevus
                                      wrote on last edited by
                                      #18

                                      den2k88 wrote:

                                      Ok drop the mask who are you...

                                      :laugh:

                                      1 Reply Last reply
                                      0
                                      • R raddevus

                                        I just started reading a very interesting book (Developer Testing: Building Quality Into Software (amazon)[^]) and the intro reminded me of a time I had a similar exchange with a dev.

                                        Jeff Langr said:

                                        One developer, however, quit two days later without saying a word to me. I was told that he said something to the effect that “I’m never going to write a test, that’s not my job as a programmer.” I was initially concerned that I’d been too eager (though I’d never insisted on anything, just attempted to educate). I no longer felt guilty after seeing the absolute nightmare that was his code, though.

                                        Back in the day when I was in QA, I approached a developer about a recent change he'd made to the code. Me: "Hey, can I get the data you used to test your changes?" Dev: "What data?" Me: "Well, you know. The data you used to test after you made the changes and did the build? I figure I can use it as a starting place for data I can send through to insure the changes work." Dev: "Oh. I didn't run any tests. That's for you to do. I built the thing and put it out there. Now, go test it." Me: :wtf: :~

                                        J Offline
                                        J Offline
                                        Johnny J
                                        wrote on last edited by
                                        #19

                                        Sereiously, I've seen VERY few unit tests where I didn't think: There's no way this is EVER going to fail! And then I wonder: Why did you (not me, but the programmer who wrote it) waste your time writing the test (and running it over and over again)? :confused: And why do managers insist that you write tests for every tiny detail that can't possibly go wrong? I'm not against unit testing as such, but I think it's WAY overrated. To be fair, I HAVE seen tests that were actually were nice to have (and written one or two myself) - but mostly waste of time in my opinion! :doh:

                                        Anything that is unrelated to elephants is irrelephant
                                        Anonymous
                                        -----
                                        The problem with quotes on the internet is that you can never tell if they're genuine
                                        Winston Churchill, 1944
                                        -----
                                        I'd just like a chance to prove that money can't make me happy.
                                        Me, all the time

                                        D H 2 Replies Last reply
                                        0
                                        • OriginalGriffO OriginalGriff

                                          And these are the people who write the code used by your bank, your car, your life support machine ... Frightening, isn't it?

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

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

                                          I happen to know persons who shall remain nameless who have built banking systems. Unnamed persons who had to sneak into the server center to run an upgrade at 2am to cover a small but fatal bug that was causing the bank's retail system to crash every day just after noon. I have no intention of naming the persons involved in that one or that I had to leave a half pint in the pub. :laugh:

                                          veni bibi saltavi

                                          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