Software Alternatives & Reviews

Google Test VS NUnit

Compare Google Test VS NUnit and see what are their differences

Google Test logo Google Test

Google Test is a unit testing for C++ programming language that is based on xUnit architecture.

NUnit logo NUnit

NUnit is a unit-testing framework for all .Net languages.
  • Google Test Landing page
    Landing page //
    2023-10-03
  • NUnit Landing page
    Landing page //
    2022-03-12

Google Test videos

No Google Test videos yet. You could help us improve this page by suggesting one.

+ Add video

NUnit videos

🎓⭐️ Master .NET and C# Unit Testing with NUnit and Moq Review

More videos:

  • Review - Overview of NUnit's Attributes
  • Tutorial - How to use the TestCase attribute in C# and NUnit

Category Popularity

0-100% (relative to Google Test and NUnit)
HR
100 100%
0% 0
Automated Testing
56 56%
44% 44
Testing
35 35%
65% 65
Attendance Management Software

User comments

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

Social recommendations and mentions

Based on our record, Google Test should be more popular than NUnit. It has been mentiond 21 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.

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 / 6 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 / 6 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: 12 months 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: about 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

NUnit mentions (14)

  • Fluent Assertions: Fluently Assert the Result of .NET Tests
    This library extends the traditional assertions provided by frameworks like MSTest, NUnit, or XUnit by offering a more extensive set of extension methods. Fluent Assertions supports a wide range of types like collections, strings, and objects and even allows for more advanced assertions like throwing exceptions. - Source: dev.to / 11 months ago
  • TDD vs BDD - A Detailed Guide
    Next, you need to install a testing framework that will be used for performing unit testing in your project. Several testing frameworks are available depending on the programming language used to create an application. For example, JUnit is commonly used for Java apps, pytest for Python apps, NUnit for .NET apps, Jest for JavaScript apps, and so on. We’ll use the Jest framework for this tutorial since we are using... - Source: dev.to / 11 months ago
  • Setting up a simple testing project with C#
    At this point you're going to see a familiar screen asking you to select a project. Here we're looking for a test project. By default, Visual Studio gives you access to 3 different testing frameworks based on your choice of project. These are MSTest, XUnit and NUnit. Ultimately, all 3 of these testing accomplish the same thing, and I've worked with all of them at various points in my career. The difference is... - Source: dev.to / 11 months ago
  • Test-Driven Development
    Use a testing framework: Utilize a testing framework like NUnit, xUnit, or MSTest to create, organize, and run your tests. These frameworks provide a consistent way to write tests, generate test reports, and integrate with continuous integration tools. - Source: dev.to / 12 months ago
  • Unlock the Power of Unit Testing: A Beginner’s Guide to Quality Software Development
    This is a basic example of how to create an NUnit unit test for a simple API in a controller with C#. You can find more information and resources on the NUnit website and in the NUnit documentation. - Source: dev.to / over 1 year ago
View more

What are some alternatives?

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

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.

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

Cantata - "Module testing early during development is becoming more important due to the increasing complexity of software.

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

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

Jest - Jest is a delightful JavaScript Testing Framework with a focus on simplicity.