[TDD/C++] C++로 실습하는 Test-Driven Development - GoogleTest 예시 프로젝트

2022. 8. 30. 21:0003. Resources/C, C++

728x90
반응형

예시 프로젝트 만들어보기

C++는 CMakeFiles를 작성하는게 꽤나 번거로운 작업이라 예시 링크를 보고 프로젝트를 하나 만들어뒀다.

참고한 링크: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html

 

C++ project setup with CMake & unit tests (google test) - Raymii.org

This guide will show you how to setup a new C++ project with CMake and unit tests via Google's test framework. With this setup you can get started right away with test-driven-development in C++. It is also simple enough to look and figure out how to add gt

raymii.org

참고 링크를 바탕으로 내가 보려고 레포

https://github.com/SunandBean/gtest_example

 

GitHub - SunandBean/gtest_example: Reference: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html

Reference: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html - GitHub - SunandBean/gtest_example: Reference: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmak...

github.com

 

결과

이 기본 프레임워크를 이용해서 여러가지 변형을 해봐야겠다.

 

앞으로 tdd 개념을 이용해서 코드를 작성할 때 해당 레포를 참고해서 진행해야지!

반응형