I mainly develop in native C ++ for Windows using Visual Studio.
Many times I find myself creating a new function / class or something else, and I just want to test this piece of logic that I just wrote quickly.
Many times I have to run the whole application, which sometimes can take some time, since there are many related parts.
Is there any tool that will allow me to quickly test this new code without having to run the entire application?
i.e.
Let's say I have a project with about 1000 files, and I'm adding a new class called Adder. Adder has an Add (int, int) method;
I just want the IDE / tool to let me test only the Adder class (without having to create a new project and write a dummy main.cpp), letting me specify the value of the inputs coming into the Adder object, Similarly, it would be nice if that would allow me indicate the expected result from the test object.
What would be even colder is if the IDE / tool then writes these sets of inputs / expected output and automatically creates an element tester class on it. If I added more I / O sets, it would continue to build I / O history.
Or how about this: that if I launched the actual application, I gave it some real data and checked that the IDE / tool captures everything that comes into the device under test. Thus, I can quickly restart my testing if I find some errors in my program, or I want to change its interface a little. I think this feature will be so neat and can help the developer quickly test / modify their code.
Am I talking about testing a fraudulent object / module that already exists?
Sidenote: It would be great if the Visual Studio debugger had “snooze” technology where the user could go back to find what went wrong. Such a debugger already exists here: http://www.totalviewtech.com/