Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unit testing in C++ [closed]

Tags:

How do I get started doing unit testing in C++ ?

I have used Junit when coding in Java and found it very useful. Is there something similar in C++ ? What do you recommend ?

like image 335
duli Avatar asked Dec 22 '08 20:12

duli


People also ask

Does C have unit testing?

A Unit Testing Framework for C CUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces.

What is unit testing in C?

Unit testing is a method of testing software where individual software components are isolated and tested for correctness. Ideally, these unit tests are able to cover most if not all of the code paths, argument bounds, and failure cases of the software under test.

Is unit testing end-to-end?

While both add value to the development process, they are different in many ways. End-to-end testing is a testing process in which the tester tests a software application from the user's perspective. Unit testing is a testing process where the developer verifies that individual units of source code work correctly.

When unit testing is executed?

Who performs Unit Testing? Unit testing is the first software testing phase in SDLC and it is usually taken up during the development of the application. These unit test cases are written and executed by software developers.


1 Answers

Here are similar questions that you may want to look at:

  • Unit testing for C++ code - Tools and methodology

  • C++ unit testing framework

I recommend you check out Google's unit testing framework in addition to CppUnit.

like image 104
David Crow Avatar answered Oct 06 '22 01:10

David Crow