GildedRose-Refactoring-Kata/c_cmocka
2023-11-08 13:48:45 +01:00
..
src remove unneeded files 2023-11-08 13:48:45 +01:00
test-cmocka added cmocka version 2023-11-08 12:38:42 +00:00
.gitignore added cmocka version 2023-11-08 12:38:42 +00:00
CMakeLists.txt added cmocka version 2023-11-08 12:38:42 +00:00
GildedRoseTextTests.c added cmocka version 2023-11-08 12:38:42 +00:00
README.md added cmocka version 2023-11-08 12:38:42 +00:00

Gilded Rose starting position in C with CMocka

Use CMake to build it. Run the target "sample_test" to run the sample unit test using the cmocka framework.

Run the TextTest fixture on the command line

When you build this project this executable should be created:

c_cmocka/cmake-build-debug/main

Execute it on the command line with an argument for the number of days:

c_cmocka/cmake-build-debug/main 10

Run the TextTest approval test that comes with this project

There are instructions in the TextTest Readme for setting up TextTest. You will need to specify the C executable in config.gr. Uncomment this line to use it:

executable:${TEXTTEST_HOME}/c_cmocka/cmake-build-debug/main