From the course: Test-Driven Development in C++

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Set up Google Test with CLion

Set up Google Test with CLion - C++ Tutorial

From the course: Test-Driven Development in C++

Set up Google Test with CLion

- [Instructor] In this lecture, I'm going to walk through getting Google Test set up to run in the JetBrain CLion C++ IDE. To follow along with this lecture, you'll need to have a recent version of the CLion IDE installed and set up to use your C++ compiler of choice. You'll also need to download and compile the Google Test library. Please refer to the video for compiling and running Google Test in Eclipse for instructions on downloading and compiling Google Test. For the lecture, I'm going to be working in Linux, but the set of steps to set up and use Google Test in CLion should be essentially the same on MAC OS or Cygwin on Windows. So, first I'm going to create a new test project called googletest_test, and I'll make sure it compiles and executes. So, first I'll create a new project and call it googletest_test. Then I'll compile and execute it. Now that I have the project set up, I'm going to modify the code for a simple Google Test assert unit test that should always pass. Then…

Contents