1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//======================================================================
//-----------------------------------------------------------------------
/**
 * @file        gtest_tap_tests.cpp
 * @brief       https://github.com/kinow/gtest-tap-listener 対応テスト
 *
 * @author      t.shirayanagi
 * @par         copyright
 * Copyright (C) 2012-2016, Takazumi Shirayanagi\n
 * This software is released under the new BSD License,
 * see LICENSE
*/
//-----------------------------------------------------------------------
//======================================================================
#define GTEST_TAP_PRINT_TO_STDOUT

//======================================================================
// include
#include "iutest.hpp"
#include "tap.h"<--- Include file: "tap.h" not found.

IUTEST(Foo, Bar)
{
    IUTEST_EXPECT_EQ(0, 1);
}

#ifdef UNICODE
int wmain(int argc, wchar_t* argv[])
#else
int main(int argc, char* argv[])
#endif
{
    IUTEST_INIT(&argc, argv);
    ::iutest::TestEventListeners& listeners = ::iutest::UnitTest::GetInstance()->listeners();
    delete listeners.Release(listeners.default_result_printer());
    listeners.Append(new tap::TapListener());
    return IUTEST_RUN_ALL_TESTS();
}