Solved

creating Test suite in c++

Posted on 2013-02-06
3
414 Views
Last Modified: 2013-02-14
I need to create a simple Test Suite to run some test cases in C++, after googling and inspecting some open source ones i m still confused on how to create my assertions and how to output the results with failures and success rate.
I don't like to stop running tests when they fail but just output the result and continue.
Any help how to start this ?
0
Comment
Question by:bachra04
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Expert Comment

by:phoffric
ID: 38861483
We used a variant of CPPUnit test in our project. Here's the first link when I googled "cppunit test":
   http://cppunit.sourceforge.net/doc/lastest/cppunit_cookbook.html
0
 
LVL 22

Assisted Solution

by:ambience
ambience earned 250 total points
ID: 38867012
I too use CppUnit, and for continuing even after failures you use this syntax

 CPPUT_IGNORE_FAILURE(( CPPUT_ASSERT_EQUAL( 1, 2 ) ));

This is described here: http://cppunit.sourceforge.net/cppunit2/doc/index.html#section_ignore_assertion_failure

The assertion failure is still logged
0
 
LVL 4

Accepted Solution

by:
havman56 earned 250 total points
ID: 38867511
Please google test  http://code.google.com/p/googletest/

gtest_exceptions =1 enable it

better than cppunit.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question