Software Alternatives, Accelerators & Startups

unittest VS Google Test

Compare unittest VS Google Test and see what are their differences

unittest logo unittest

Testing Frameworks

Google Test logo Google Test

Google Test is a unit testing for C++ programming language that is based on xUnit architecture.
  • unittest Landing page
    Landing page //
    2023-10-19
  • Google Test Landing page
    Landing page //
    2023-10-03

Category Popularity

0-100% (relative to unittest and Google Test)
Automated Testing
53 53%
47% 47
HR
0 0%
100% 100
Testing
78 78%
22% 22
Online Services
100 100%
0% 0

User comments

Share your experience with using unittest and Google Test. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare unittest and Google Test

unittest Reviews

25 Python Frameworks to Master
nose2 extends the built-in unittest library and provides a more powerful and flexible way to write and run tests. It’s an extensible tool, so you can use multiple built-in and third-party plugins to your advantage.
Source: kinsta.com

Google Test Reviews

We have no reviews of Google Test yet.
Be the first one to post

Social recommendations and mentions

Based on our record, unittest should be more popular than Google Test. It has been mentiond 60 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

unittest mentions (60)

  • Enhance Your Project Quality with These Top Python Libraries
    Unittest is a built-in module of Python. It’s inspired by the xUnit framework architecture. This is a great tool to create and organise test cases in a systematic way. You can use unittest.mock with pytest when you need to create mock objects in your tests. The unittest.mock module is a powerful feature in Python’s standard library for creating mock objects in your tests. It allows you to replace parts of your... - Source: dev.to / 3 months ago
  • An Introduction to Testing with Django for Python
    Unittest is Python's built-in testing framework. Django extends it with some of its own functionality. - Source: dev.to / 4 months ago
  • Testing in Python
    After looking through the various unit testing tools available for Python like pytest, unittest (built-in), and nose, I went with pytest for its simlpicity and ease of use. - Source: dev.to / 7 months ago
  • Testing Python Code Using UnitTest
    Like I said above, I chose the UnitTest framework because it is built into Python, which should make things easier for contributors as it reduces the number of libraries they need to install in order to get started on the program. I also have a little experience with reading the syntax for the library due to a Data Structures and Algorithms class I took in a previous semester, where my professor had us write data... - Source: dev.to / 7 months ago
  • Htmx, Rust and Shuttle: A New Rapid Prototyping Stack
    Python has had tests and a cli that discovers them since 3.2 https://docs.python.org/3/library/unittest.html >>Test Discovery¶. - Source: Hacker News / 8 months ago
View more

Google Test mentions (21)

  • Automatically run tests, formatters & linters with CI!
    Roy's project uses Google Test, a C++ testing framework. His testing setup is similar to mine as we both keep source files in one directory and tests in another. The key difference is that I can run the tests using the Visual Studios run button. It was fairly easy to write the new tests as there were existing ones that I could reference to check the syntax! - Source: dev.to / 7 months ago
  • C++ Unit Testing Using Google Test - My Experience
    One popular C++ Testing Framework is Google Test, and is what I ended up using. - Source: dev.to / 7 months ago
  • CI/CD pipelines for embedded
    Not sure about CppUnit but I can speak to my previous experience using the googletest framework which compiles your tests to an executable, and since it's a very simple framework we were able to cross-compile and run directly on our device. We just had to hook up a device to the server that was running the CI so it could flash it when needed. That basically meant that our process was:. Source: about 1 year ago
  • How is programming done in large c++ projects?
    Some C++ unit testing frameworks include googletest, and microsoft's unit testing framework, which doesn't really have a name. Source: over 1 year ago
  • IDE for CPP(leetcode)
    However, you can use a unit test framework like GoogleTest or Catch2 whic creates a main() function for you which allows you to run single functions, as long as they have been created through some preprocessor macros. Then you can use a VS Code test adapter like this or this which may let you run a single test by right clicking it directly in VS Code. Source: over 1 year ago
View more

What are some alternatives?

When comparing unittest and Google Test, you can also consider the following products

pytest - Javascript Testing Framework

CPPUnit - CppUnit is the C++ port of the JUnit framework for unit testing.

Rumprun - The Rumprun unikernel and toolchain for various platforms - rumpkernel/rumprun

UnitTest++ - Download JF Unittest for free. A C++ unittest framework, written out of frustration with the existing unittest frameworks out there. No GUI with colorful progress bars, no dependencies on any other package in the world.

Cucumber - Cucumber is a BDD tool for specification of application features and user scenarios in plain text.

JUnit - JUnit is a simple framework to write repeatable tests.