C ++ Testing Environment: Recommended Recommendation

I am looking for a “quick and dirty” C ++ testing environment that I can use in my Windows / Visual Studio window. This is just me developing, so it should not be enterprise-class software. Looking at the list of test frameworks, I'm a little stupefied ...

http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C.2B.2B

+4
source share
7 answers

Here is a great article on C ++ TDD frameworks . For recording, my personal preference is CxxTest, which I happily used for about six months.

+5
source

I used UnitTest ++ and Boost.Test . They are easy to set up and use. Although I would not use Boost.Test if you are not already using Boost libraries. This is not much to install all Boost to get a testing framework.

+5
source

Great question! There have already been several questions that concern

Some:

+5
source

Also look at googletest , a Google C ++ test environment.

+4
source

I use UnitTest ++ and AMOP for Mock objects.

However, now I would look at GoogleTest and GoogleMock for a long time, as they will probably complement each other well.

+1
source

To get a kit for testing bare bones, I recommend including only "Fructose". This is especially convenient if you want your tests to run on platforms where you need to use non-standard APIs for text output (think about game consoles, embedded devices, etc.).

0
source

Take a look at CUnitWin32 . It includes an example.

0
source

Source: https://habr.com/ru/post/1277585/


All Articles