Generate test files from classes and generate new files from tests