2023-09-15 17:08:34 -05:00
|
|
|
# cpp-unity-template
|
|
|
|
|
2023-09-15 17:16:41 -05:00
|
|
|
## Compiling the project
|
|
|
|
|
|
|
|
Prerequisites
|
|
|
|
- C++11
|
|
|
|
|
|
|
|
In order to compile the project, simply run these two commands:
|
|
|
|
|
|
|
|
cmake -B build -S .
|
|
|
|
cmake --build build
|
|
|
|
|
|
|
|
## Running the Project
|
2023-10-23 12:12:32 -05:00
|
|
|
|
|
|
|
The program should now be compiled at build/bin/something
|
2023-09-15 17:16:41 -05:00
|
|
|
|
|
|
|
Simply run the program using:
|
|
|
|
|
|
|
|
build/bin/something
|
2023-09-19 14:08:18 -05:00
|
|
|
|
|
|
|
## Testing the Project
|
2023-10-23 12:12:32 -05:00
|
|
|
|
|
|
|
Prerequisites
|
|
|
|
- Unity (Throw the Switch) | [AUR](https://aur.archlinux.org/packages/unity-test)
|
2023-10-23 12:13:03 -05:00
|
|
|
|
2023-09-19 14:08:18 -05:00
|
|
|
In order to compile the tests for the project, simply run these two commands:
|
|
|
|
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Debug -B build -S .
|
|
|
|
cmake --build build
|
|
|
|
|
2023-10-23 12:12:32 -05:00
|
|
|
The program should now be compiled at build/bin/tests
|
2023-09-19 14:08:18 -05:00
|
|
|
|
|
|
|
Simply run the tests using:
|
|
|
|
|
2023-10-23 12:12:32 -05:00
|
|
|
build/bin/tests
|