Commit Graph

16 Commits

Author SHA1 Message Date
tbeu
73a51ef14f Fix C++ code smells
* Move "using namespace std;" from header to module file (to no longer pollute the global namespace).
* Fix inconsistency of having namespace prefix in test code.
* Add include guard to GildedRose.h.
* Avoid std::endl.
* Have consistent white-space.
2025-02-12 20:56:22 +01:00
tbeu
3bf108ef0e Restructure build targets of CMake configuration
* Rename the library under test from src to GildedRoseLib.
* Move the lib folder to test/third_party and handle ApprovalTests.hpp as header-only dependency.
* Remove the superfluous googletest_approval_main.cpp (in the same sense as there is only one GildedRoseCatch2ApprovalTests.cc)
* Set USE_FOLDERS property such that target ALL_BUILD, RUN_TESTS and ZERO_CHECK are grouped for Visual Studio.
* Set WORKING_DIRECTORY such that the RUN_TESTS target works successfully.
* Fix C++ language standard for Catch2 v3 to C++14.
* Bump third-party dependencies
  * Update ApprovalTests.hpp to v10.13.0
  * Update Catch2 to v3.8.0
  * Update GTest to v1.16.0
2025-02-11 23:04:23 +01:00
Stef Helling
ddf8581e48 Updated googletest to release-1.12.1 and catch2 to v3.3.2 2023-06-09 14:21:43 +02:00
Sebastian Zander
15fa497fbd Fix syntax errors in cpp kata 2022-05-13 21:24:02 +02:00
Algan Ongun
d7d17eaa61 Fixed issue263, fixed the usage of c functions in cpp 2022-04-29 21:58:38 +03:00
Emily Bache
7598ff7848 added texttests fixture to cpp version 2020-05-06 09:21:24 +00:00
Emily Bache
c709b8bab5 added comments for how to add coverage 2020-02-04 14:42:29 +01:00
Clare Macrae
0aa4180e23 Reduce required C++ level from 17 to 11 - no code changes needed. 2019-12-09 14:47:33 +00:00
Jacob Mossberg
1836cca836 Refactor C++ version of the Gilded Rose kata
* Make it possible to build and run tests in CLion
  and Visual Studio 2019 out of the box

* Provide four types of initial test using different test frameworks:
  * Catch2 test framework
    * Traditional unit testing using Catch2
    * Approval test using Catch2
  * Google Test test framework
    * Traditional unit testing using Google Test
    * Approval test using Google Test

* The different types of initial test are located in separate folders
  in the test folder.

* Remove scripts to build and run tests and replace
  with instructions in the cpp README.md

* Use C++17

* Use CMake => 3.13
2019-12-09 08:40:47 +01:00
Emily Bache
fc0f14803a cpp ignore file 2019-09-27 13:20:29 +02:00
Peter Kofler
e0373461c1 Renames README files consistently. 2018-12-02 20:39:39 +01:00
Anders Arnholm
c503bf8a2b Add Approval Tests for cpp
* Add testcase using https://github.com/approvals/ApprovalTests.cpp and google test.
* Change google test to be downloaded if not installed with cmake
* Add a run-once-cmake.sh script to build and test with cmake
* Add a run-approval-once.sh script to build and run approval test
2018-10-13 15:55:30 +02:00
Amitai Schleier
6599767748 With Google Test 1.8.0, I seem to need both libs. 2018-08-14 00:22:38 +01:00
Emily Bache
03a51ec273 improved installation instructions 2016-01-22 16:55:48 +01:00
Bryan Thrall
df705663ac Initial CMake support. 2015-01-16 08:37:59 -06:00
emilybache
567c27854a Removed all the code except for the GildedRose kata from this repo 2013-06-10 14:42:41 +02:00