Side by side
GoogleTest vs NUnit
Both stand on unit testing. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan LinuxMacWindows
GoogleTest offers a broad set of C++ testing and mocking capabilities, from automatic test discovery to parallel execution. Check the published compiler, platform and build-tool versions, and note the C++17 requirement for the 1.18.x branch.
Visit GoogleTest Free plan AndroidAPIiPhone+4
NUnit offers a free, MIT-licensed testing framework for several .NET languages, with dependency and repeat controls in version 5. Developers can use its project templates or command-line setup and connect test runs to documented CI workflows.
Visit NUnitThe facts
| GoogleTest | NUnit | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux, Mac, Windows | Android, API, iPhone, Linux, Mac, Self-hosted, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | google.github.io | nunit.org |
| On unit testing | #3 of 32 | #7 of 32 |
GoogleTest: what it does well
- Discovers and runs tests without manual registration.
- Supports fatal, non-fatal and death tests.
- Provides value- and type-parameterized tests.
- Can run tests in parallel.
- Free under the BSD-3-Clause license.
What to know first
- The 1.18.x branch requires at least C++17.
- Supports C++ only.
NUnit: what it does well
- Free under the MIT license for commercial and noncommercial use
- Supports C#, VB.NET, F#, and C++
- NUnit 5 supports test and fixture dependencies
- Repeat can set a pass percentage from 1 to 100
- Documentation describes CI runs on Azure DevOps and GitHub Actions
What to know first
- No free trial is listed
- NUnit 5 builds target net462, net8.0, and net10.0
Alternatives to GoogleTest Alternatives to NUnit The whole list
