For Chinese, please refer to README-zh.md
This is a project that enhances googletest
, providing some features that googletest
does not have.
- In your project, you can reference this library using the
git submodule
method:
git submodule add https://github.com/Homqyy/egoogletest.git
- Add the following code to the
CMakelists.txt
file in your project to reference this library:
add_subdirectory(egoogletest)
target_include_directories(test_all PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/egoogletest)
target_link_libraries(test_all PRIVATE GTest::gtest_main egtest your_project_target)
- In your test files, you can use the
egtest.h
header file to use the features provided by this library:
#include <egtest.h>