So what are some current methodologies or even automated test software that I could use to refactor current code to be more test-driven?

1 Answer 1


It really doesn't work that way.

Test-Driven really means that the tests come before the code. So if you already have the code, it's too late to test-drive it. What you can do, on a project which did not initially use TDD, is to start using it. So before you write any new code, you write the test first. Gradually that will add coverage to your existing code base; it will probably encourage you to refactor some of your old code, too, as you discover just how hard it is to write tests for it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.