K
K
Kamikaze10242017-09-08 13:00:05
C++ / C#
Kamikaze1024, 2017-09-08 13:00:05

How to connect cxxtest to a project using Clion IDE?

I can't connect cxxtest to my clion project. How can this be made to work? My project has a directory with unit tests. I want to get testrunner.cpp and runner executable. How can I edit CmakeLists.txt to make this possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ariox41, 2017-09-08
@Kamikaze1024

I'm not very familiar with Clion and cxxtest, but CMake has CTest, which allows you to add an arbitrary executable file as a test (i.e. CMakeLists indicates that the result of compiling such and such cpp files is a test), and allows you to specify command line arguments when starting the test. After the configuration, the tests are run by a command make testor similar for other build systems, which can most likely be set already in the Clion settings: either in the project launch settings, or as an external tool.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question