What is Import External Test Code?
Import External Test Code is a feature that imports existing GTest-based C++ test code into a CT 2025.06 project, allowing it to be executed and managed as a Code-Based Test.
Used to integrate and manage GTest-based test code written outside CT into a CT project.
Criteria for Importing External Test Code
Files that do not meet the criteria below are not shown in the importable file list.
- The file must be a C++ source file.
- The file must contain GTest macros (
TEST
,TEST_F
,TEST_P
). - Files that contain Code-Based Test macros (
CTEST
,CTEST_F
,CTEST_P
) are excluded. For such files, use the [Import Test] feature.
Importing and Running External Test Code
- Import External Test Code requires a C++ project that meets the following conditions.
Requirements Description Project Type C++ project (C projects are not supported) Supported Toolchains GCC 5.0 or later
Visual Studio 2015 or later
Clang 8.0 or laterExecution Environment Host Environment (Target Environment is not supported)
Need more help with this?
Don’t hesitate to contact us here.