Robert Šandor
Robert Šandor

Reputation: 111

Unit testing Client/Server App in C++

I am currently developing Client/Server app based on TCP protocol in C/C++ and want to perform unit tests of both client and server side. I am using unix sockets for development. Are there any MOCK libs or something similar to be used in testing or do I have to make wrappers in order to perform tests? Do these tests have to be local or they can be performed on network?

Upvotes: 2

Views: 2596

Answers (1)

Petar Velev
Petar Velev

Reputation: 2355

There are at least a few test frameworks you can use. For example Google test which can include Google mock. There are a variety of different tests you can develop for your application.

For unit tests, you must not use the network. The idea is to test only the logic.

But there are other tests that can be made which will use the network. These tests are called system tests because they test the whole system.

Upvotes: 3

Related Questions