J
J
Julia2016-08-03 11:15:39
C++ / C#
Julia, 2016-08-03 11:15:39

How to implement Cmake and Ctest and just Testing in Visual Studio?

Guys, hello.
I urgently need to understand how to add tests to the project.
I do everything according to https://cmake.org/Wiki/CMake/Testing_With_CTest
Run_Test in VisualStudio I already have, but in CMakeFile you can already
add_test( testname Exename arg1 arg2 ... )
For example, I have a file Line3D.hpp
Coordinate getMinDistancePoint(const Line3D &line2) const; // function for testing
how will add_test (
testname Exename arg1 arg2 ... ) look like then
2 question sysdev.me/cmake-and-ctest here a man does
the same but writes tests separately
PS. I would love to read about other testing options in VisualStudio 13.
If there are any simple solutions, please tell me.
I used to write only UNIT test for Java.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question