This project implements cash register model simulation, based on TDD approach. It was created, using the following template PARO Course Template.
It's the software development strategy. It consists of three parts:
-
Red Phase: First, we implement interfaces and tests for our system. We do this without the knowledge, of how it will be implemented.
-
Green Phase: In this phase we need to repair all test errors, with the minimal effort. The main goal of this phase is to create actual software that passes tests.
-
Refactor Phase: In the last phase we refactor either tests or code. It is important to refactor only one at a time, so that there would not be any conflicts. The goal is to optimize our solution.
# Clones repository.
git clone https://github.com/Bezik1/Cash-Register-TDD CashRegister
# Builds build directory.
mkdir build && cd build
# Build project.
cmake -s CashRegister/workspace -b build It will generate Makefile by default, use -G"Ninja" to get ninja scripts instead.
# First build.
cmake ../workspace
# Build and run tests.
make run_tests
# Creates identifier [MacOS].
echo -n "test" | shasum -a 256