Skip to content

Commit 2a4d0a0

Browse files
committed
ログを追加
1 parent 26761b8 commit 2a4d0a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unittests/test-sample-fixture.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ class FixtureSample : public ::testing::Test
3636
*/
3737
TEST_F(FixtureSample, Test1)
3838
{
39+
/* テストケース名を出力する */
40+
printf("%s::%s\n", ::testing::UnitTest::GetInstance()->current_test_case()->name(), ::testing::UnitTest::GetInstance()->current_test_info()->name());
3941
}
4042

4143
/*!
4244
Fixture テストのサンプル
4345
*/
4446
TEST_F(FixtureSample, Test2)
4547
{
48+
/* テストケース名を出力する */
49+
printf("%s::%s\n", ::testing::UnitTest::GetInstance()->current_test_case()->name(), ::testing::UnitTest::GetInstance()->current_test_info()->name());
4650
}

0 commit comments

Comments
 (0)