googletest
GoogleTest - Google의 테스팅 및 모킹 프레임워크
파일 탐색기
- 00-bug_report.yml
- 10-feature_request.yml
- config.yml
- linux-presubmit.sh
- macos-presubmit.sh
- windows-presubmit.bat
- navigation.yml
- default.html
- main.scss
- style.scss
- actions.md
- assertions.md
- matchers.md
- mocking.md
- testing.md
- _config.yml
- advanced.md
- community_created_documentation.md
- faq.md
- gmock_cheat_sheet.md
- gmock_cook_book.md
- gmock_faq.md
- gmock_for_dummies.md
- index.md
- pkgconfig.md
- platforms.md
- primer.md
- quickstart-bazel.md
- quickstart-cmake.md
- samples.md
- gmock.pc.in
- gmock_main.pc.in
- README.md
- gmock-generated-actions.h
- gmock-matchers.h
- gmock-port.h
- README.md
- gmock-internal-utils.h
- gmock-port.h
- gmock-pp.h
- gmock-actions.h
- gmock-cardinalities.h
- gmock-function-mocker.h
- gmock-matchers.h
- gmock-more-actions.h
- gmock-more-matchers.h
- gmock-nice-strict.h
- gmock-spec-builders.h
- gmock.h
- gmock-all.cc
- gmock-cardinalities.cc
- gmock-internal-utils.cc
- gmock-matchers.cc
- gmock-spec-builders.cc
- gmock.cc
- gmock_main.cc
- BUILD.bazel
- gmock-actions_test.cc
- gmock-cardinalities_test.cc
- gmock-function-mocker_test.cc
- gmock-internal-utils_test.cc
- gmock-matchers-arithmetic_test.cc
- gmock-matchers-comparisons_test.cc
- gmock-matchers-containers_test.cc
- gmock-matchers-misc_test.cc
- gmock-matchers_test.h
- gmock-more-actions_test.cc
- gmock-nice-strict_test.cc
- gmock-port_test.cc
- gmock-pp-string_test.cc
- gmock-pp_test.cc
- gmock-spec-builders_test.cc
- gmock_all_test.cc
- gmock_ex_test.cc
- gmock_leak_test.py
- gmock_leak_test_.cc
- gmock_link2_test.cc
- gmock_link_test.cc
- gmock_link_test.h
- gmock_output_test.py
- gmock_output_test_.cc
- gmock_output_test_golden.txt
- gmock_stress_test.cc
- gmock_test.cc
- gmock_test_utils.py
- CMakeLists.txt
- README.md
- Config.cmake.in
- gtest.pc.in
- gtest_main.pc.in
- internal_utils.cmake
- libgtest.la.in
- README.md
- gtest-port.h
- gtest-printers.h
- gtest.h
- README.md
- gtest-death-test-internal.h
- gtest-filepath.h
- gtest-internal.h
- gtest-param-util.h
- gtest-port-arch.h
- gtest-port.h
- gtest-string.h
- gtest-type-util.h
- gtest-assertion-result.h
- gtest-death-test.h
- gtest-matchers.h
- gtest-message.h
- gtest-param-test.h
- gtest-printers.h
- gtest-spi.h
- gtest-test-part.h
- gtest-typed-test.h
- gtest.h
- gtest_pred_impl.h
- gtest_prod.h
- prime_tables.h
- sample1.cc
- sample1.h
- sample10_unittest.cc
- sample1_unittest.cc
- sample2.cc
- sample2.h
- sample2_unittest.cc
- sample3-inl.h
- sample3_unittest.cc
- sample4.cc
- sample4.h
- sample4_unittest.cc
- sample5_unittest.cc
- sample6_unittest.cc
- sample7_unittest.cc
- sample8_unittest.cc
- sample9_unittest.cc
- gtest-all.cc
- gtest-assertion-result.cc
- gtest-death-test.cc
- gtest-filepath.cc
- gtest-internal-inl.h
- gtest-matchers.cc
- gtest-port.cc
- gtest-printers.cc
- gtest-test-part.cc
- gtest-typed-test.cc
- gtest.cc
- gtest_main.cc
- gmock_dynamic_cast_message_test.proto
- BUILD.bazel
- googletest-break-on-failure-unittest.py
- googletest-break-on-failure-unittest_.cc
- googletest-catch-exceptions-test.py
- googletest-catch-exceptions-test_.cc
- googletest-color-test.py
- googletest-color-test_.cc
- googletest-death-test-test.cc
- googletest-death-test_ex_test.cc
- googletest-env-var-test.py
- googletest-env-var-test_.cc
- googletest-fail-if-no-test-linked-test-with-disabled-test_.cc
- googletest-fail-if-no-test-linked-test-with-enabled-test_.cc
- googletest-fail-if-no-test-linked-test.py
- googletest-fail-if-no-test-selected-test.py
- googletest-failfast-unittest.py
- googletest-failfast-unittest_.cc
- googletest-filepath-test.cc
- googletest-filter-unittest.py
- googletest-filter-unittest_.cc
- googletest-global-environment-unittest.py
- googletest-global-environment-unittest_.cc
- googletest-json-outfiles-test.py
- googletest-json-output-unittest.py
- googletest-list-tests-unittest.py
- googletest-list-tests-unittest_.cc
- googletest-listener-test.cc
- googletest-message-test.cc
- googletest-options-test.cc
- googletest-output-test-golden-lin.txt
- googletest-output-test.py
- googletest-output-test_.cc
- googletest-param-test-invalid-name1-test.py
- googletest-param-test-invalid-name1-test_.cc
- googletest-param-test-invalid-name2-test.py
- googletest-param-test-invalid-name2-test_.cc
- googletest-param-test-test.cc
- googletest-param-test-test.h
- googletest-param-test2-test.cc
- googletest-port-test.cc
- googletest-printers-test.cc
- googletest-setuptestsuite-test.py
- googletest-setuptestsuite-test_.cc
- googletest-shuffle-test.py
- googletest-shuffle-test_.cc
- googletest-test-part-test.cc
- googletest-throw-on-failure-test.py
- googletest-throw-on-failure-test_.cc
- googletest-uninitialized-test.py
- googletest-uninitialized-test_.cc
- gtest-typed-test2_test.cc
- gtest-typed-test_test.cc
- gtest-typed-test_test.h
- gtest-unittest-api_test.cc
- gtest_all_test.cc
- gtest_assert_by_exception_test.cc
- gtest_dirs_test.cc
- gtest_environment_test.cc
- gtest_help_test.py
- gtest_help_test_.cc
- gtest_json_test_utils.py
- gtest_list_output_unittest.py
- gtest_list_output_unittest_.cc
- gtest_main_unittest.cc
- gtest_no_test_unittest.cc
- gtest_pred_impl_unittest.cc
- gtest_premature_exit_test.cc
- gtest_prod_test.cc
- gtest_repeat_test.cc
- gtest_skip_check_output_test.py
- gtest_skip_environment_check_output_test.py
- gtest_skip_in_environment_setup_test.cc
- gtest_skip_test.cc
- gtest_sole_header_test.cc
- gtest_stress_test.cc
- gtest_test_macro_stack_footprint_test.cc
- gtest_test_utils.py
- gtest_testbridge_test.py
- gtest_testbridge_test_.cc
- gtest_throw_on_failure_ex_test.cc
- gtest_unittest.cc
- gtest_xml_outfile1_test_.cc
- gtest_xml_outfile2_test_.cc
- gtest_xml_outfiles_test.py
- gtest_xml_output_unittest.py
- gtest_xml_output_unittest_.cc
- gtest_xml_test_utils.py
- production.cc
- production.h
- CMakeLists.txt
- README.md
- .clang-format
- .gitignore
- BUILD.bazel
- CMakeLists.txt
- CONTRIBUTING.md
- CONTRIBUTORS
- fake_fuchsia_sdk.bzl
- googletest_deps.bzl
- LICENSE
- MODULE.bazel
- README.md
- WORKSPACE
- WORKSPACE.bzlmod
# 설치 가이드
cmake사전 준비물
- C++ Compiler (C++17 supporting) C++17
- CMake 3.5 or higher
- Bazel (Alternative)
설치 및 실행 절차
mkdir build
빌드를 위한 디렉터리를 생성합니다.
cd build
생성된 빌드 디렉터리로 이동합니다.
cmake ..
CMake를 사용하여 빌드 파일을 생성합니다.
cmake --build .
프로젝트를 빌드합니다.
ctest
테스트를 실행하여 빌드를 검증합니다.
핵심 명령어
cmake -DCMAKE_BUILD_TYPE=Release ..
CMake 설정을 통해 플랫폼별 빌드 파일을 생성합니다.
cmake --build . --config Release
설정된 빌드 도구를 호출하여 프로젝트를 컴파일합니다.
ctest --output-on-failure
프로젝트에 포함된 단위 테스트 스위트를 실행합니다.
bazel test //...
Bazel 빌드 시스템을 사용하여 테스트를 빌드하고 실행합니다.
GoogleTest 1.18.x 브랜치는 최소 C++17 이상을 지원하는 컴파일러가 필요합니다.
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
링크
예시
릴리즈 타임라인
활발히 관리 중명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
write
설명 보기 ▼
write
데이터를 메모리에 저장.
더 많은 정보: <https://www.oreilly.com/library/view/cisco-ios-in/0596008694/re869.html#book-content>.
write memory
현재 설정을 메모리에 저장:
write {{username}} {{terminal_id}}
지정된 사용자에게 주어진 터미널 ID로 메시지 전송:
write {{username}} {{terminal_id}}
Send a message to a given user on a given terminal ID:
// repository documentation
Was this content helpful?
(0 ratings)
