Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends

I need to test some VC++ code.
It's for protected/unprotected code can you please help me by telling which software is good for testing or can you send me some links.

I have gone throw NUnit, Unit testing for c++, cppunit software but in that I am facing many problems for VC++.

So please help me out for any other software.
Posted
Updated 4-Oct-10 21:37pm
v4
Comments
Dalek Dave 5-Oct-10 3:37am    
Edited for Radability.

1 solution

Here are a couple of questions back...

- what do you mean by protected/unprotected code?

- what's your development culture? If you haven't designed your code for testing (or even better written your tests first) you won't have an easy time writing tests after the event.

- what's the purpose of the tests? Are they to prove that a lump of code works according to some specification or are they there to specify how the code works?

If you can answer the last two then the rest of the world might have a chance helping you. If you can't then it's probably an idea to read around HOW you test code before worrying about WHAT tool to use to do it.

Cheers,

Ash

PS in response to the comment below...

If you want to do unit testing of C++ code then you can download something like cppunit lite, boost test or just write your tests in C++ and worry about a framewok later. The assert() macro can work fairly well until you know what you have to test. After you work out exactly what you want your tests for then you can make a more informed choice about what tool or even whether to use a tool for your testing.

Personally I've never got on with CPPunit (or actually the whole XUnit family) as they've all been very heavyweight. I can't comment on the utility of the library you've tried and couldn't setup.
 
Share this answer
 
v2
Comments
aayu 5-Oct-10 4:38am    
well i want to check VC# coding and VC++ code and can write Test Case for VC# in NUnit but for VC++ NUnit is not supporting so i want to know which software is there to test VC++ code. i have search in Google i got Unit++ but is this when i am downloading the file and then extract it i am not getting setup file i am just getting text page i have did this three time so i need a help if any one can let me know which software i good to test VC++ code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900