After building my testfile, xxxxtest, with gtest can I pass a parameter when running the test, e.g. ./xxxxtest 100. I want to control my test function using the parameter, but I do not know how to use the para in my test, can you show me a sample in test?
After building my testfile, xxxxtest, with gtest can I pass a parameter when running
Share
You could do something like the following:
main.cc
my_test.h