-
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 mode
in the main sidebar. - Choose the
Build
option from theBuild & Run
menu. - Add a new build configuration named "test" by cloning (
Add -> Clone selected
) your selected configuration. - In
Build steps
underqmake
, click on theDetails
arrow. - Add the line
CONFIG+=test
into the fieldAdditional arguments
. - Build using the
test
option in the build sidebar. - Tests should now be configured and working as intended.