, Qt. , :
:
- , setUp tearDown
- QCOMPARE . ,
std::chrono::duration , . QCOMPARE
Boost , , .
Google . . , , , . , (, ).
I want to mention one more structure: Catch. This is a heading-only structure, with very few statements. For instance. REQUIRE(a == b)will work, and the values aand bwill be resolved on failure. There is no need for instrument classes or templates, you can simply define sections in a test example, this will be performed N times, with different sections. It is very simple, understandable to humans. On the other hand, it takes time to compile by default.
source
share