Software re-factoring has been done to improve the internal behavior of any code or application. After the re-factoring, some of the programs may report defects (say behavioral changes or compilation errors). After classification of these defects, how can we generate test cases individually for each set of classified defects ? Is there any specialized algorithm or methodology to do so ?
Also is there any possibility to classify the defects directly from an IDE ?