| Author |
Usefulness of Testing in existing project
|
AnilPrakash Raju
Ranch Hand
Joined: Jul 26, 2004
Posts: 137
|
|
Hi Lasse, How useful is the book in applying Testing on existing projects? i am working on an existing project, but doing some enhancements to the project thanks Anil
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
Hi Anil,
Originally posted by AnilPrakash Raju: How useful is the book in applying Testing on existing projects? i am working on an existing project, but doing some enhancements to the project
Part 2 of the book is useful for a Java EE developer not just in learning to use TDD but also for learning how to write tests for various Java EE components. Part 3, on the other hand, talks a lot about system level test automation, which can also be useful from a pure "testing" perspective.
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
In my experience, enhancing an existing system always can be done at least partly in a way that allows adding new code that is reasonably decoupled from the already existing code. For that part of the code, TDD can be a applied just as when working on a greenfield project. Writing tests for already existing code is harder and requires additional skills. I'd advise to ignore that part for the moment and get good at the above (which I'd assume Lasse's book is appropriate for). Once have grip on doing TDD for new code, you might want to take a look at the book "Working Effectively With Legacy Code".
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
Paul Croarkin
Ranch Hand
Joined: Sep 30, 2004
Posts: 106
|
|
|
In addition to "Working with Legacy Code", I'd recommend Martin Fowler's "Refactoring" book.
|
Thanks,<br /> <br />Paul Croarkin<br />SCEA 5, SCWCD, SCJP
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
Originally posted by Paul Croarkin: In addition to "Working with Legacy Code", I'd recommend Martin Fowler's "Refactoring" book.
Yes, that's definitely a required read, even without legacy code or TDD at all (although it will be a big help with both).
|
 |
Stefan Bell
Ranch Hand
Joined: Aug 26, 2003
Posts: 82
|
|
Originally posted by Paul Croarkin: In addition to "Working with Legacy Code", I'd recommend Martin Fowler's "Refactoring" book.
One of the best books ever. I would make that book required reading for all developers.
|
 |
 |
|
|
subject: Usefulness of Testing in existing project
|
|
|