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. www.marcclifton.com

www.marcclifton.com

Scheduled Pinned Locked Moved The Lounge
testingcombeta-testing
8 Posts 6 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.
  • J Offline
    J Offline
    John L DeVito
    wrote on last edited by
    #1

    Marc, Just wanted to say what an awesome site you have, I check it everyday. The testing articles rock. On that note, I realize you link to a few sites for testing, but do you know of any comprehensive (starting with the ultra n00b) testing sites. The article titled "Unit Test Patterns" is top notch, and I can't think of a better argument than that for testing to become it's own engineer discipline. Again kudos on a very nice site. Thanks, John

    M D R 3 Replies Last reply
    0
    • J John L DeVito

      Marc, Just wanted to say what an awesome site you have, I check it everyday. The testing articles rock. On that note, I realize you link to a few sites for testing, but do you know of any comprehensive (starting with the ultra n00b) testing sites. The article titled "Unit Test Patterns" is top notch, and I can't think of a better argument than that for testing to become it's own engineer discipline. Again kudos on a very nice site. Thanks, John

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

      Erm, wow, thanks! It's not every day I get to see my name in lights!

      John L. DeVito wrote:

      I realize you link to a few sites for testing, but do you know of any comprehensive testing sites.

      Can you elaborate--are you looking for engines like NUnit or programs that help you prepare/organize tests, or more on the idea of unit testing, or, all of the above? Marc VS2005 Tips & Tricks -- contributions welcome!

      J 1 Reply Last reply
      0
      • M Marc Clifton

        Erm, wow, thanks! It's not every day I get to see my name in lights!

        John L. DeVito wrote:

        I realize you link to a few sites for testing, but do you know of any comprehensive testing sites.

        Can you elaborate--are you looking for engines like NUnit or programs that help you prepare/organize tests, or more on the idea of unit testing, or, all of the above? Marc VS2005 Tips & Tricks -- contributions welcome!

        J Offline
        J Offline
        John L DeVito
        wrote on last edited by
        #3

        Well, I'm looking for really simply stuff, such as the most simplistic example of a function being tested. for example if I have a function that takes 2 int as parameters squares them and returns the new value, how would I write code to test the function? I'm really really new at this, everything I know about programming (which really isn't that much) is completely self taught, so the best way for me to learn is ask questions and look at examples, so if you know of any place, docs, or sites that may help me further, I'd hugely appreciate it. Thanks, John

        G M 2 Replies Last reply
        0
        • J John L DeVito

          Marc, Just wanted to say what an awesome site you have, I check it everyday. The testing articles rock. On that note, I realize you link to a few sites for testing, but do you know of any comprehensive (starting with the ultra n00b) testing sites. The article titled "Unit Test Patterns" is top notch, and I can't think of a better argument than that for testing to become it's own engineer discipline. Again kudos on a very nice site. Thanks, John

          D Offline
          D Offline
          Don Miguel
          wrote on last edited by
          #4

          ;)

          L 1 Reply Last reply
          0
          • D Don Miguel

            ;)

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            You did! www.marcclifton.com[^] xacc.ide-0.1.0.12 released! Now even prettier than the last build :) Download and screenshots

            1 Reply Last reply
            0
            • J John L DeVito

              Well, I'm looking for really simply stuff, such as the most simplistic example of a function being tested. for example if I have a function that takes 2 int as parameters squares them and returns the new value, how would I write code to test the function? I'm really really new at this, everything I know about programming (which really isn't that much) is completely self taught, so the best way for me to learn is ask questions and look at examples, so if you know of any place, docs, or sites that may help me further, I'd hugely appreciate it. Thanks, John

              G Offline
              G Offline
              Graham Shanks
              wrote on last edited by
              #6

              My initial reaction was "Marc's stuff is pretty simple" but on looking at his pages again I suppose that it is getting towards the intermediate level. My suggestion is to buy or borrow - but not steal :) - a copy of Test Driven Development by Kent Beck. If you want a taster before getting hold of the book, then look at CppUnit on SourceForge, specifically the Money Example[^] This takes you through the set up of CPPunit, but then starts on a nice simple example. Follow up by googling on "Test Driven Development" and perhaps on "unit testing" for more details. Then download a testing framework (CppUnit[^] for C++, NUnit[^] for .NET, JUnit[^] for Java) and start testing! Oh, and don't forget to go back and read Marc's unit testing articles once you get a bit more familiar with the concepts Graham

              1 Reply Last reply
              0
              • J John L DeVito

                Well, I'm looking for really simply stuff, such as the most simplistic example of a function being tested. for example if I have a function that takes 2 int as parameters squares them and returns the new value, how would I write code to test the function? I'm really really new at this, everything I know about programming (which really isn't that much) is completely self taught, so the best way for me to learn is ask questions and look at examples, so if you know of any place, docs, or sites that may help me further, I'd hugely appreciate it. Thanks, John

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

                John L. DeVito wrote:

                if I have a function that takes 2 int as parameters squares them and returns the new value, how would I write code to test the function?

                Well, how would you test them yourself? Probably the first thing would be to just see how they work with a couple sample numbers. BTW, your example is a bit odd--given 2 ints that you square, do you return the sum? Let's say the equation was Sqrt(x^2 + y^2). So, if you give the test routine 3 for x and 4 for y, you would expect 5 to be returned. The next thing to ask yourself is, what kind of errors do I have to deal with? Well, one obvious one is that if you square and int, what happens when the result exceeds Int32.Max? So, you'd write a unit test to verify that the routine tests for this and throws an appropriate exception. I guess the basic idea is, write a test so you can verify that it works, then think of some failure conditions and see how it handles itself. If you haven't already, peruse the Extreme Programming[^] site. While I'm not a proponent of XP, there's a lot of useful things that they talk about. Marc VS2005 Tips & Tricks -- contributions welcome!

                1 Reply Last reply
                0
                • J John L DeVito

                  Marc, Just wanted to say what an awesome site you have, I check it everyday. The testing articles rock. On that note, I realize you link to a few sites for testing, but do you know of any comprehensive (starting with the ultra n00b) testing sites. The article titled "Unit Test Patterns" is top notch, and I can't think of a better argument than that for testing to become it's own engineer discipline. Again kudos on a very nice site. Thanks, John

                  R Offline
                  R Offline
                  Raj Lal
                  wrote on last edited by
                  #8

                  John L. DeVito wrote:

                  what an awesome site

                  Simply brilliant "Not everything that counts can be counted..." -Albert Einstein

                  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