Gw Unit Testing: Difference between revisions
Jump to navigation
Jump to search
(Uus lehekülg: '# In Qt Creator open Projects. # In Build tab: ## In 'Edit build configuration' 'Add'->'Clone Selected'. Name it something like ''unittest'' ## In 'General' change 'Build directo...') |
No edit summary |
||
Line 4: | Line 4: | ||
## In 'General' change 'Build directory', so unit test executable doesn't overwrite the previous program | ## In 'General' change 'Build directory', so unit test executable doesn't overwrite the previous program | ||
## In 'Build Steps'->'qmake' click 'Details' add ''DEFINES+=UNIT_TEST'' to 'Additional Arguments' field | ## In 'Build Steps'->'qmake' click 'Details' add ''DEFINES+=UNIT_TEST'' to 'Additional Arguments' field | ||
# In | # In Run tab: | ||
## 'Clone selected' in 'Run configuration' (same as for 'Edit build configuration') | ## 'Clone selected' in 'Run configuration' (same as for 'Edit build configuration') | ||
## Add ''--show_progress=no --log_level=all'' to 'Arguments' field | ## Add ''--show_progress=no --log_level=all'' to 'Arguments' field |
Revision as of 08:14, 21 November 2014
- In Qt Creator open Projects.
- In Build tab:
- In 'Edit build configuration' 'Add'->'Clone Selected'. Name it something like unittest
- In 'General' change 'Build directory', so unit test executable doesn't overwrite the previous program
- In 'Build Steps'->'qmake' click 'Details' add DEFINES+=UNIT_TEST to 'Additional Arguments' field
- In Run tab:
- 'Clone selected' in 'Run configuration' (same as for 'Edit build configuration')
- Add --show_progress=no --log_level=all to 'Arguments' field
MarkTomm 21. november 2014, kell 10:14 (EET)