We have a lot of legacy code, some parts of which are planned for refactoring or replacement. We want to optimize the details that are currently affecting the user experience, facilitate reuse in the planned new product, and hopefully improve maintainability.
We have some good / full functional tests for an existing product. This is a mixture of automated and manual GUI tests, but they can take the developer more than half a day to work fully. The "low level domain logic" has a good set of unit tests (NUnit) with good coverage. Unfortunately, the rest of the code does not have unit tests (or at least there are no decent unit tests).
What I would like to find is a tool that automatically generates unit tests for specific methods / classes and possibly specific interfaces based on their use and behavior in functional tests. These unit tests would be invaluable for refactoring, and would also be performed as part of our CI system for detecting regressions much earlier than at present (and localizing the regressions is much better than the “X button doesn't work.”).
Do such tools exist? Do you have any recommendations for me?
I came across Parasoft.TEST , which looks as if maybe I want. Do you have any comments about my situation?
I don't think that something that just generates test code from static analysis is useful here ala NStub . I believe this is really generating representative test data that is really important.
Please ignore the advantages or disadvantages of automated test generation - this is not what I usually defended. (Not least because you get tests that pass for broken code!)
source
share