c++ - Looking for executable-based test framework -
I have worked out an old program that works, but beautiful ugly source code is without changing the functionality The code needs to be made good This program takes an input file, calculates all types and generates an output file.
The program is currently written in a C / C ++ combination, firstly I am going to put it in C ++ program, but in the very future I will convert it, or parts of it into Python I'm going to do
Naturally, have not taken the time to prepare the original Developer's unit test, or any other type of exam. Since I want to make sure that my modifications have not changed the behavior of the program, I want to start by making some tests. These units will not be tested, but the entire program will be tested.
I want that every exam should take a set of an input file and command line argument, to run the program and to output the output (which is output file, standout output and stder R Output)). / P>
Since I need to support both C ++ and Python, the language of the test framework should be ignorant - it runs an executable, collecting and comparing stdout and stderr, as well as any other file Should be able to compare pre-output output.
I did not find a test framework that could do this. Is there anything like that? I do not want to develop myself.
Well, from the top of my head, you definitely get executable with your desired inputs in Python Use subprogram or some similar modules to run, parse the output and then use the unit module to set the expectations of what type of output you are looking for.
Comments
Post a Comment