• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Testing...

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Testing....
 
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree testing is an important part of Refactoring.
http://www.softpanorama.org/Bookshelf/testing.shtml
This testing related web site does recommend the Refactoring book though.
"Refactoring--improving the design of existing code" by Martin Fowler. I think it is the first click on the left at the top of this forum.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Testing is so important that some Extreme Programming authors consider it a prerequisite for refactoring. If you can't test that your software performs the same after your refactoring as before, then refactoring can become too risky and too expensive to take on.
In theory, each refactoring is designed to have no effect on the overall function of the software, but in practice the process of refactoring can cause behavioural changes. For systems (like Java) which currently have little or no automated support for refactoring, there is always the chance that the programmer might type something wrong, edit the wrong file, delete some code by mistake, whatever. There is also the possibility that a refactoring might excercise a bit of code which has never been fully tested, or is poorly named or misunderstood.
So to enable carefree use of refactoring, a good and fairly comprehensive regression test harness (or at absolute minimum a good set of test cases) is extremely useful. The one-two punch of automatic regression testing and rigorous refactoring (rather than just tikering) is capable of delivering real development and maintenance benefits, and potentially more than the sum of its parts.
reply
    Bookmark Topic Watch Topic
  • New Topic