简体   繁体   中英

c++ unit test/mock framework integrated into visual studio 2012

I want to use unit tests in VS 2012 in c++. VS allows to write unit tests, run them and see the output in test explorer window. Unfortunately it seems that VS lacks a mock framework. Do You know how to integrate for example Google Test/Mock framework into VS, so that I can still see the test results in test explorer window?

I found this link that gives a fairly detail explanation on the mock framework and MSTest.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/f5f1ff2a-5d4b-4ba9-b993-090b93b6ee2f/mock-frameworks-for-native-c-code

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM