Best Practices to Write First Class Unit Tests

Published January 31st, 2012 Under Unit Testing | Comments Off

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

Legacy Refactorings for Testable User Interface Code

Published January 18th, 2011 Under Software Testing | Comments Off

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.

Watch this streaming video from the Norwegian Developer Conference 2010

Testing: Why Don’t We Do It Like This?

Published November 18th, 2010 Under Software Testing | Comments Off

Testing is a fundamental part of the Agile process. We live and breathe TDD/BDD. Red/Green/Refactor is our daily mantra. We love cucumber and writing executable, customer readable specifications. We even write tests for our JavaScripts. And yet, testing remains hard. The tests we love to write are brittle and tend to break when we refactor. Although we talk about the tests being the specification of our code, too often they specify “how its implemented” rather than “what should be done”. This talk is about how to improve the way we do testing, how to move away from merely specifying how our software is implemented to capturing the true essence of how it should function.

Video Producer: JRuby Conference

Unit Testing Legacy Code

Published September 8th, 2010 Under Unit Testing | Comments Off

This video shows technique to refactoring unit testing of legacy code.

Refactoring Test Code

Published August 31st, 2010 Under Software Testing | Comments Off

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.

Removing Duplication by Refactoring

Published May 5th, 2010 Under Software Testing | Comments Off

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

Refactoring A Cyclomatic Complexity Script

Published December 23rd, 2009 Under Software Testing | Comments Off

An example of refactoring to clean up a python script.

Blog source of the video

keep looking »