I am doing unit testing as part of my intern-ship. My boss is always telling me that finding a way to automate things is the best way and I was wondering if it would be possible to use python, to write a script that would read a text file with a certain structure and syntax and then generate a c++ file based off of said text file?
I am using Google-Test to do unit testing and I just think it would be a good addition to the companies tools but I would just like to know if its possible and if anyone else has done something similar.
Thanks!
with open("test.cpp", "w") as file: file.write("int main(){printf('Hello, World!'); return 0;}")