-
Notifications
You must be signed in to change notification settings - Fork 1
Configuring tests
kimmoal edited this page Nov 22, 2017
·
5 revisions
Tests have been written for class TmcClient located in lib/tmcclient/test directory.
The tests are triggered with the additional test conditional argument in the testmycode.pro file.
To get the tests working in QtCreator you must define the additional arguments to qmake as follows:
- Switch to
Projects modein the main sidebar. - Choose the
Buildoption from theBuild & Runmenu. - Add a new build configuration named "test" by cloning (
Add -> Clone selected) your selected configuration. - In
Build stepsunderqmake, click on theDetailsarrow. - Add the line
CONFIG+=testinto the fieldAdditional arguments. - Build using the
testoption in the build sidebar. - Tests should now be configured and working as intended.