Home > User Support > QTE

FAQ / QTE (Quality Town for Embedded Grade)

【QTE12】Test Execution Issues

QTE12_03 : Google Test

【question】
I want to select test cases and test functions when I run tests, is there a way to select them?

【Answer】
GoogleTest features the ability to select test cases and test functions to be executed in the command line options at runtime.
QTE allows you to use this feature to select test cases and test fu
To use this feature in QTE, set an environment variable to a string to be passed to the GoogleTest command line option.
Execute the following command to define a value for the environment variable QTE_ARG_TO_TESTBIN and then run the test.

$ export QTE_ARG_TO_TESTBIN="--gtest_filter=Test Case Name. Test function name."

※ For more information on "--gtest_filter", please refer to the advanced guide in the Google Test documentation http://opencv.jp/googletestdocs/advancedguide.html )を参照ください。

Search for related support information.

【Google Search in Support Information Site】

search keyword: 

Other Keyword Search




Reference information and links