Skip to content

Conversation

@githublaohu
Copy link
Contributor

Introduction of test library Google test and google mock to provide unit and integration test functions

@githublaohu githublaohu changed the title add google test and google mock Introduce Googletest and Google mock infra Dec 19, 2018
@githublaohu githublaohu changed the title Introduce Googletest and Google mock infra Introduce Google test and Google mock infra Dec 19, 2018
Copy link
Contributor

@jovany-wang jovany-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some small comments about lint.

CMakeLists.txt Outdated
add_subdirectory(libs)
add_subdirectory(project)
add_subdirectory(example)
add_subdirectory(test) No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a new line at the end of this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already processed

build.sh Outdated
mkdir -p ${build_dir}
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove these spaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alerady delete


BuildGoogleTest()
{

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this empty line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already processed

include_directories(${Boost_INCLUDE_DIRS})


set(Gtest_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/bin/include/gtest)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set(Gtest_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/bin/include/gtest)
Just use 1 space between 2 args.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already processed

target_link_libraries (${basename} rocketmq_shared ${deplibs})
target_link_libraries (${basename} rocketmq_shared ${Gtest_LIBRARIES})
target_link_libraries (${basename} rocketmq_shared ${Gmock_LIBRARIES})
#else()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If these codes are useless, could you plz remove them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already processed

include_directories(${Gmock_INCLUDE_DIR})
include_directories(${Gmock_INCLUDE_DIR}/internal)

set(Gtest_LIBRARY_DIRS ${CMAKE_SOURCE_DIR}/bin/lib)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already processed

@duhenglucky duhenglucky merged commit d5887b6 into apache:master Dec 24, 2018
@githublaohu githublaohu deleted the newGoogleTest branch December 27, 2018 08:39
@ShannonDing ShannonDing added the enhancement New feature or request label Jan 21, 2019
@ShannonDing ShannonDing added this to the 1.2.1 milestone Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants