Techniques such as Test Driven Development, and more recently, Behavior Driven Development are well known. Yet, you still hear conflicting stories about unit testing. Some claim that introducing a lot of unit tests can hamper development, or that those tests are a maintenance problem on itself. To a limited degree I agree, but isn’t that true for all software that is not been well though off? An important reason for this is that unit tests not always seen as being part of the production code. Read more
This session gives you an idea of the kinds of design changes you need to make to improve the testability of your system through a demonstration of legacy refactoring techniques targeted at getting business logic out of UI code.
Video Producer: JRuby Conference
This video shows technique to refactoring unit testing of legacy code.
Badly written tests are a nightmare of many agile projects. Hard to understand and maintain test suite sometimes act as a brake on introducing changes. This presentations discuss basic techniques of refactoring test code. During live coding session you will see how to simplify non-readable tests in few simple test and, among other things, various ways of creating test data, expressing assertions and avoiding duplication in tests.
This video removes the duplication in the add and subtract classes by introducing an abstract base class. The end result is a use of the template method pattern.
Video Producer: Brett L. Schuchert
An example of refactoring to clean up a python script.keep looking »