2 different codes with the same functionalities => how to test them ?
Hello,
I have an old code and a new code, with new functions but exactly the same functionalities.
To test if the new code gives the same results than the old code, is there a specific way to write the tests ? Or do I just have to write the tests twice (once for the old cold and once for the new code) ?
SInce you want to test if the output is exactly the same , I would first write tests for the old code.
Then copy those tests to your new (code) project adapt the tests , but make sure the output tested is exactly the same.
Now you will know if old project results will also be returned for the new project.