468,765 Members | 916 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

Unit tests for C++ projects

Hi all,

I have "Visual Studio Team Suite" subscription and now I started to play
with Visual Studio 2005 for creating Test Projects.

The thing I am interested in is the "unit test". I tried out the steps
from:
http://msdn.microsoft.com/library/de...nitTesting.asp
and everything seems to be fine. But this sample shows creating tests
for methods/classes that you got by creating a C# project -Class
Library.
I don't use C#, but C++. I created a Windows C++ project with some
classes, but when right-clicking the methods of the class I don't get
the option of creating a test eg "Create Tests...".
Is this feature just for C# projects? If no, why can't I see the "Create
Tests..." when right-clicking on a C++ class/method?

Thx,
Viv
Aug 3 '06 #1
1 1404
"Viviana Vc" <vc*******@hotmail.comwrote in message
news:4j************@individual.net...
Hi all,

I have "Visual Studio Team Suite" subscription and now I started to play
with Visual Studio 2005 for creating Test Projects.

The thing I am interested in is the "unit test". I tried out the steps
from:
http://msdn.microsoft.com/library/de...nitTesting.asp
and everything seems to be fine. But this sample shows creating tests
for methods/classes that you got by creating a C# project -Class
Library.
I don't use C#, but C++. I created a Windows C++ project with some
classes, but when right-clicking the methods of the class I don't get
the option of creating a test eg "Create Tests...".
Is this feature just for C# projects? If no, why can't I see the "Create
Tests..." when right-clicking on a C++ class/method?
The unit test support in Team System is only for managed code. But all is
not lost - you can create a managed C++ test project to test your unmanged
C++ code. Unfortunately, the fancy "create unit tests" support isn't
there - you have to build it all by hand.

See http://msdn2.microsoft.com/en-us/library/ms243171.aspx for a starting
point.

-cd
Aug 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Naveen Mukkelli | last post: by
6 posts views Thread by Droopy | last post: by
1 post views Thread by Viviana Vc | last post: by
1 post views Thread by rich_sposato | last post: by
1 post views Thread by Richard Lewis Haggard | last post: by
48 posts views Thread by Ark Khasin | last post: by
2 posts views Thread by =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post: by
4 posts views Thread by =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.