Abort gen

ref #1511 
The approach is a way of solving for the real environment.
In test case, #generate_with_parts calls the `require` for dependency files.
Then, the required files and constants will be deleted.