The purpose of the CSE4283Assignment2 commandline tool is to demonstrate the use of Test Driven Development (TDD).
This project requires the following tools.
- Xcode 12.0 or later
- MacOS 11.0 or later
- Swift 5.3
- Open the
CSE4283Assignment2.xcodeproj
file with Xcode. - Ensure that the Scheme is set to
CSE4283Assignment2
. - Build (⌘B) or Run (⌘R) the project by clicking the Play button on the top left corner of the Xcode window.
- Open the root project directory in Terminal
- Run the following command to build the project
xcodebuild build -scheme CSE4283Assignment2
- Open the
CSE4283Assignment2.xcodeproj
file with Xcode. - Ensure that the Scheme is set to
CSE4283Assignment2
. - Click and hold the Play button located on the top left corner of the XCode window (or press ⌘U).
- Upon hold, select Test to switch to the Test target.
- Click the play button again to run all tests.
- Open the root project directory in Terminal
- Run the following command to build the project
xcodebuild test -scheme CSE4283Assignment2
- Open the
CSE4283Assignment2.xcodeproj
file with Xcode. - Ensure that the Scheme is set to
CSE4283Assignment2
. - Run (⌘R) the project by clicking the Play button on the top left corner of the Xcode window.
- Xcode will run the project in the Terminal window on the bottom righthand side of the IDE.
- Navigate to root project directory using Terminal
- Run
xcodebuild -target CSE4283Assignment2
- Navigate to
/CSE4283Assignment2/build/Release
directory. - Run the Unix Executable File using the following command:
./CSE4283Assignment2
An explanation for the formula used to determine the BMI with the Imperial system can be found here.