![]() |
Home | Libraries | People | FAQ | More |
This recommendation is shown using Microsoft Visual Studio as an example, but you can apply similar steps in different IDEs.
I found it most convenient to put test program execution as a post-build step in compilation. To do so use project property page:
Full command you need in "Command Line" field is:
"$(TargetDir)$(TargetName).exe" --result_code
=no --report_level
=no
Note that both report level and result code are suppressed. This way the only output you may see from this command are possible runtime errors. But the best part is that you could jump through these errors using usual keyboard shortcuts/mouse clicks you use for compilation error analysis:
If you got "memory access violation" message (or any other message indication fatal or system error) when you run you test, to get more information of error location add
--catch_system_error=no
to the test run command line:
Now run the test again under debugger and it will break at the point of failure.