I want to start to do some unit testing however I am really confused about how to setup CPPUnit. I have looked at various tutorials and guides online to find out what to do but there are so many variants of what to do. I've tried a few ways but none seem to work. If anyone could pont me in the right direction of what to do then I woudl be extremeley grateful. I am currently using visual studio 2005 and most of my apps are mainly MFC I also create a fair amount of .net apps so ideally I want it to work for both. I am a massive newbie so when explaining please try and keep technical jargon down to a minimum as I probably won't understand it.
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Dependencies while implementing Mocking in Junit4
There is no installation. The distribution is the source code which must be compiled with the compiler you are using for your C++ work. Setting up CPPUnit (on windows using Visual Studio):
Open file MsDevCallerListCtrl.cpp in the folder srcmsvc6testrunner. Find the following line:
import "libid:80cc9f66-e7d8-4ffffd-85b6-d9e6cd0e93e2" version("7.0") lcid("0") raw_interfaces_only named_guids
Now do a batch build for all configurations.
Did you follow this tutorial?
If it is still not working for you, can you please be a bit more specific on what is working for you and what is not? Maybe post the link to the tutorial you are following and where it bugs?