We made a lot of changes that significantly improved the situation (but we still have where to strive for). The main changes in the built-in debugger are work on performance. In previous versions, there was already auto-completion of CMake commands, and now we have implemented auto-completion of variables (so far only those with names static).Īlso, an option appeared in the formatting settings that allows you to always use only uppercase or always only lowercase letters for CMake commands (a mixed style variant is also acceptable). As for other similar templates, for abbreviations of templates there is auto-completion, and the template is opened by pressing a key Tab(or another configured in the settings): You can also create your own and use them in CMake files. We added some ready-made templates: foreach, function, if, macro, while, incboost (which helps to connect Boost libraries to the project).
![clion google test clion google test](https://taiphanmem.com.vn/anhphanmem/20210722/tai-clion-7-a%20-2021-07-22.jpg)
Our IDEs are known for their ability to deduce types, and with the advent of C ++ 11, this has become relevant for C ++. (By the way, about getting a CMake project for working with UE4 in CLion, read the article in English from our colleague). For example, support for the _LINE_ macro, which is necessary for development under Unreal Engine 4 and not only. This release includes more than 50 fixes related to the C ++ language. Read and see more about Google Test in CLion 1.2 in our English-language blog and in the corresponding video on the YouTube channel. For example, when specifying the name of an existing fixture, the macro is automatically replaced by TEST_F (): You can At the same time, generating the test method directly is tricky - at first the TEST () macro is always created, and then, depending on the context, it is automatically replaced with a more suitable one. Menu appears by clicking on Alt+InsertWindows / Linux, Cmd-NOS X, and offers to generate one test, a fixture class and a standard pair of SetUp / TearDown methods.
#Clion google test code
To facilitate the writing of tests directly, we added code generation: The View previous runs of tests by history, which is saved automatically.transfer the results of the current test run to a file.see the output of each specific test and error messages.look / go to the code of a specific test.The interface is probably familiar to those who have used / are using other products based on our IntelliJ platform. The launch result will be displayed in a special window:
#Clion google test windows
The configuration settings indicate which tests to run, which target to call, etc.: You canĭirectly run the test through the context menu or by using the keyboard shortcut ( Ctrl+Shift+F10on Windows / Linux, Ctrl-Shift-ROS X). To do this, CLion implements special configurations that are created automatically when a test is run, a test file, a test class, or manually in the settings.
![clion google test clion google test](https://www.jetbrains.com/clion/img/screens/2021.2/presets.png)
One of the main innovations of this release is support for Google Test and the ability to run tests directly from the IDE.
#Clion google test update
īy the way, if you already have a CLion license (purchased before November 2 or after the launch of a new licensed model), you get this update absolutely free. This release was released just the other day, as part of the update of all JetBrains desktop products and the launch of a new licensed model. Today we want to talk about the new release of our cross-platform IDE for C and C ++ - CLion 1.2.