mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
34513cf16b
Added support for code coverage checking with gcov and unittests with Google C++ unittest and GMock frameworks. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
12 lines
359 B
C++
12 lines
359 B
C++
#include <gmock/gmock.h>
|
|
#include <gtest/gtest.h>
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
// The following line causes Google Mock to throw an exception on failure,
|
|
// which will be interpreted by your testing framework as a test failure.
|
|
::testing::GTEST_FLAG(throw_on_failure) = true;
|
|
::testing::InitGoogleMock(&argc, argv);
|
|
|
|
return RUN_ALL_TESTS();
|
|
} |