0% found this document useful (0 votes)
261 views2 pages

GTest Vs CppUnit

Gtest is a more fully featured unit testing framework compared to CppUnit. Gtest supports test fixtures, setup/teardown, automated test registration, XML output, custom asserts, death tests, disabling tests, and selecting tests to run via name patterns. It also has a rich set of built-in asserts and handles crashes. CppUnit is an older framework that is better suited for small tests and lacks many of these features.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
261 views2 pages

GTest Vs CppUnit

Gtest is a more fully featured unit testing framework compared to CppUnit. Gtest supports test fixtures, setup/teardown, automated test registration, XML output, custom asserts, death tests, disabling tests, and selecting tests to run via name patterns. It also has a rich set of built-in asserts and handles crashes. CppUnit is an older framework that is better suited for small tests and lacks many of these features.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Sheet1

Google Test Vs CppUnit frameworks


Gtest
Professionally developed yes
XML output yes
Test fixtures yes
Setup and Teardown yes
Automated registration of tests yes
GUI runner yes
custom asserts yes
Death Tests yes
Disable tests yes
Rich set of built-in asserts yes
Non-fatal assertions yes
turning asserts into breakpoints yes
Adding additional debug info to
assert yes using <<operator
Tests to run can be selected
using name patterns yes
Crash handling yes
Mock framework yes

CppUnit framework was old and mostly used for small tests and it didn't support much feature
disable a particular test, one and only advantage is that it requeries less libraries as compa
suitable for TDD(Test Driven Development) evironment. CppUnit still requires RTTI, the STL
world to require that, but it could be problematic if you want to link against libraries that have n
STL. CppUnit requires lot of typing o add new test and the relative complexity of the source
different platforms.

For more advantages of Gtest follow the link https://stackoverflow.com/questions/79

Page 1
Sheet1

CppUnit frameworks
CppUnit
yes
yes
yes
yes
yes
yes
yes
no
no
somewhat
no
no

no

no
no
possible by using 3rd party

dn't support much features, and it is quite difficult to add new tests and to
s less libraries as compared to Gtest but efiiciency wise Gtest was best
l requires RTTI, the STL, and exception handling. It’s not the end of the
ainst libraries that have no RTTI enabled, or if you don’t want to pull in the
complexity of the source code, which could make it challenging to port to

verflow.com/questions/7922289/googletest-vs-cppunit-the-facts

Page 2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy