Creating Tests Using Code Generate Menu
The Generate menu enables generating of standard test code constructs. You can generate a test stub using this menu; besides, depending on the current context CLion provides you with a list of Google Test specific constructs:
To create test code constructs using the Generate menu:
- Open the test file and place the caret at the desired position in the editor.
- Do one of the following:
- In the Generate menu that appears, select the desired construct. Important note: When generating tests for fixtures, once you have specify a fixture name in the created template, CLion automatically converts the inserted macro to one of the following types:
See Also
Last modified: 29 March 2017