Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to use PARASOFT_CPPTEST macro in C/C++test Standard

Options
Andrey Madan
Andrey Madan Posts: 388 ✭✭✭

By default the -DPARASOFT_CPPTEST is added in the project settings in Professional. But where is it defined in Standard Edition where there is no concept of eclipse project files? Here is the answer (thank you @Bogdan Czwartkowski for getting that info)!

  1. Create a file called extras.psrc (name is arbitrary)
  2. add the following line to that file:

codewizard.preprocessorExtraOption -DPARASOFT_CPPTEST

  1. Refer to the file using cpptestcli (standard) -psrc option:
    cpptestcli -psrc extras.psrc