472,958 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

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 1584
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Naveen Mukkelli | last post by:
Hi, Currently, I've got all my unit tests in a separate class in the same project. Instead of this, I'm planning to move all my tests in a separate project in a single solution. For...
6
by: Droopy | last post by:
Hi, I want to add unit tests in my application using NUnit. At first, I thought to add unit tests in the class that is tested, enclosed in a conditional attribute to remove these unit tests from...
1
by: Viviana Vc | last post by:
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...
8
by: Eric | last post by:
I've spent some time this morning looking into unit testing frameworks for ASP.NET 2.0, but none seem satisfactory. I don't have Visual Studio Team Edition, so apparently I can't use Microsoft's...
1
by: rich_sposato | last post by:
I released version 2.0 of C++ Unit Test Library. You can download it from SourceForget.Net at http://sourceforge.net/projects/cppunittest/ .. I wrote this unit test library because other unit...
1
by: Richard Lewis Haggard | last post by:
I'm having trouble creating unit tests for some of the projects in my solution. The unit test doesn't seem to recognize that there are classes and methods in some of the projects in a solution and...
48
by: Ark Khasin | last post by:
Unit testing is an integral component of both "formal" and "agile" models of development. Alas, it involves a significant amount of tedious labor. There are test automation tools out there but...
2
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
I was wonder if there is any protocol or suggestions on how to setup unit testing projects in large solution??? If you have a large solution of say 50 projects and add a project for every unit...
4
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I am familiar with unit testing but have to implement in a large solution of 100 projects - my concern is Adding Unit test will bloat the solution - taking more time to get all code from...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.