We need to migrate a unit test harness developed with C# and NUnit to C++ running on Red Hat Linux.
We want to minimize the efforts in migration.
We are reading resources such as this:
http://gamesfromwithin.com/exploring-the-c-unit-testing-framework-jungle
But we don't see anything similar to NUnit.
A Unit Testing Framework for CCUnit 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.
MSTest is concerned, the biggest difference between xUnit and the other two test frameworks (NUnit and MSTest) is that xUnit is much more extensible when compared to NUnit and MSTest. The [Fact] attribute is used instead of the [Test] attribute.
NUnit is a unit testing framework for . NET languages, and Moq is the most popular mocking framework for . NET. I assume the reader is familiar with C# projects, Visual Studio IDE, and the Nuget package manager for managing dependencies.
NUnit is the C# version of JUnit (Java). xUnit is an improvement of NUnit to make this more extensible for TDD. So is not the name of the tool, they are different tools. – Frank. Sep 20, 2021 at 0:27.
Have You considered using CppUnit?
Here is an overview on unit testing frameworks for C++.
We use Google Mock and Google Test. Having never used NUnit, though, I can't comment on how similar it is to NUnit.
And there's Boost.Test.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With