Convert from boost test to gtest#434
Open
bnavarma-ms wants to merge 5 commits intomicrosoft:spfresh_async_iofrom
Open
Convert from boost test to gtest#434bnavarma-ms wants to merge 5 commits intomicrosoft:spfresh_async_iofrom
bnavarma-ms wants to merge 5 commits intomicrosoft:spfresh_async_iofrom
Conversation
Contributor
|
@bnavarma-ms please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
MaggieQi
approved these changes
Sep 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request migrates the test suite from Boost.Test to Google Test (GTest) and updates the CMake configuration, test code, and includes accordingly. It also adds a VSCode configuration to improve C++ standard library header recognition. The most important changes are grouped below.
Test Framework Migration:
BOOST_AUTO_TEST_CASE,BOOST_CHECK,BOOST_ASSERT) with Google Test equivalents (TEST,ASSERT_*,EXPECT_*,GTEST_FAIL) across all test files, such asTest/src/AlgoTest.cpp,Test/cuda/pq_perf.cpp,Test/cuda/cuda_tests.cpp,Test/inc/Test.h,Test/src/Base64HelperTest.cpp, andTest/src/CommonHelperTest.cpp. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22]CMake and Dependency Updates:
Test/CMakeLists.txtto remove Boost unit test framework as a dependency, and adds logic to find or fetch Google Test using CMake'sFetchContentif not already available. Updates the test executable to link against GTest. [1] [2]Code and Naming Cleanup:
namespaceandTESTconventions instead of Boost's suite macros. Renames some test functions for clarity (e.g.,Test→RunTest). [1] [2] [3] [4]Editor Configuration:
.vscode/settings.jsonfile to improve C++ standard library header recognition in VSCode by associating standard headers with the C++ language mode.Header File Updates:
Test/inc/Test.h).These changes collectively modernize the project's test infrastructure, making it easier to maintain and integrate with modern C++ development environments.