Gw Unit Testing

From Phobos Wiki
Revision as of 08:14, 21 November 2014 by MarkTomm (talk | contribs) (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...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. In Qt Creator open Projects.
  2. In Build tab:
    1. In 'Edit build configuration' 'Add'->'Clone Selected'. Name it something like unittest
    2. In 'General' change 'Build directory', so unit test executable doesn't overwrite the previous program
    3. In 'Build Steps'->'qmake' click 'Details' add DEFINES+=UNIT_TEST to 'Additional Arguments' field
  3. In 'Run' tab:
    1. 'Clone selected' in 'Run configuration' (same as for 'Edit build configuration')
    2. Add --show_progress=no --log_level=all to 'Arguments' field


MarkTomm 21. november 2014, kell 10:14 (EET)