The document of Google Test says:
TEST()
arguments go from general to specific. The first argument is the name of the test case, and the second argument is the test's name within the test case. Both names must be valid C++ identifiers, and they should not contain underscore (_
).
It surprises me because I usually name the tests with underscores (instead of CamelCase), e.g:
TEST(foo_test, should_fail_if_either_arg_negative) {
It seems that the tests are doing well.
My question is, how strict is this no-underscore rule? What could happen if I break it?