C++test will automatically extract options from the project (e.g., from its Makefile or Visual Studio configuration). You may also specify additional options that persist even when the Makefile or Visual Studio configurations change. These options can be specified at the project level or file level, and they can be specified for source files, standalone test suite files, and user-defined stubs.
To specify options at the project level:
Right-click the project tree node for the project you want to specify settings for, then chooseProperties from the shortcut menu. The Properties dialog will open.
Select the Build Settings category.
DPARASOFT_CPPTEST
is added to the compiler optionsĀ by default. You can add any additional options after that. ${cpptest:original_options}
variable can be used to access the original project options.${cpptest:engine_loc}/runtime
variable can be used to access the original C++test runtime.To specify options at the file level:
Right-click the project tree node for the file for which you want to specify settings, then chooseProperties from the shortcut menu. The Properties dialog will open.
Enable Use custom options.
-DPARASOFT_CPPTEST
is added to the compiler optionsĀ by default. You can add any additional options after that. ${cpptest:original_options}
variable can be used to access the original project options.