Good. I made a screen scripting program in C ++. Now how to make unit test.cpp? where will i start
There are several module testing modules that can help you test your code.
Check out: Google Test (Google C ++ Testing Framework), which can be found at http://code.google.com/p/googletest/
and Google Mock (Google C ++ Mocking Framework) at http://code.google.com/p/googlemock/ , which will help you check the flow of applications by creating object mockups for your classes.
( Mock- http://en.wikipedia.org/wiki/Mock_object)
GoogleTest , , CxxTest (http://cxxtest.tigris.org/).
!
Tal.
, /, , , () /API , .
, " ". (/) "" (SUT). " " , , , SUT.
, SUT. , SUT -, , SUT "SetMemberObj (aMockInstance)" -. SUT , , .lib, , SUT .
, SUT; , , , , , SUT.
, SUT. .exe, SUT , stdout / . , .
CppUnit - ++ JUnit .
++, . - , ++ .
Here are training videos demonstrating test development in C ++: http://www.vimeo.com/album/254486
Source: https://habr.com/ru/post/1757488/More articles:Table cell, custom editor and editing frame - cocoaCalling a function of a TRACE system in C ++ - c ++Recursive descent record for parsing epsilon (ε) in Java - javaDifference between login and user on sql server - sqlcaching with memcached - ruby-on-railsOpen the ruby require file to be downloaded? - ruby | fooobar.comminimal algorithm in python - pythonGraphic rendering in the sphere - gpuQuestion about string handling - javaПереслать пользователя на предыдущую страницу после входа в систему - drupalAll Articles