refactoring Archive

TDD With Refactoring Maniacs

Classic old-school TDD recommends refactoring as part of every cycle — red, green, refactor. In fact, it recommends refactoring mercilessly. Relentlessly. To succeed at classic TDD, you have to be some kind of refactoring maniac!

Best Practices to Write First Class Unit Tests

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

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

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,

Unit Testing Legacy Code

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

Refactoring Test 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