jeudi 26 mai 2016

C++ Boost Unit Test: How to manually finish unit test with success?

Currently I'm coding a network lib based on Boost asio. I want to automatically test my lib with a kind of loopback echo test. The problem is, that the server is running continuously thus the test never ends. My idea is to do some EQUAL tests with response data and to manually stop the unit test with success. If a timeout occurs otherwise, the test should stop with fail (I know, it's more an integration test as an unit test)... Is there a Boost Unit Test macro to manually stop the test with success?

Thanks!

Aucun commentaire:

Enregistrer un commentaire