mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-17 11:25:04 +00:00
First commit of Fortran version of GildedRose
This commit is contained in:
1 parent
efb82954a7
commit
eaa731bb83
5 files changed
+306
No files matched your search
@@ -0,0 +1,57 @@
|
||||
# Fortran version of Gilded Rose refactoring kata
|
||||
|
||||
## Introduction
|
||||
The Fortran90 version of the Gilded Rose refactoring kata.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
* CMake version >= 3.13
|
||||
* Fortran compiler
|
||||
* Tested with:
|
||||
* gfortran
|
||||
* Intel Fortran
|
||||
|
||||
## How to build and run tests in a terminal
|
||||
|
||||
### Build tests
|
||||
|
||||
$ cd ${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake ..
|
||||
$ cmake --build .
|
||||
|
||||
### Show available tests
|
||||
|
||||
$ cd ${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran/build
|
||||
$ ctest -N
|
||||
Test project ${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran/build
|
||||
Test #1: GildedRose_text_test
|
||||
Test #2: GildedRose_unity_test
|
||||
|
||||
Total Tests: 2
|
||||
|
||||
### Run all tests
|
||||
|
||||
$ ctest
|
||||
|
||||
### Run all tests with verbose output
|
||||
|
||||
$ ctest -VV
|
||||
|
||||
## How to build and run tests using the [CLion IDE](https://www.jetbrains.com/clion/)
|
||||
|
||||
1. Start CLion
|
||||
2. Select menu `File - Open...`
|
||||
3. Select folder `${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran`
|
||||
4. Select menu `Build - Build Project`
|
||||
4. Select menu `Run - Run...`
|
||||
|
||||
## How to build and run tests using Visual Studio 2019
|
||||
|
||||
1. Start Visual Studio 2019
|
||||
2. Select `Open a local folder`
|
||||
3. Select folder `${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran`
|
||||
4. Wait for message `CMake generation finished.` in the CMake output window at the bottom
|
||||
5. Select ALL_BUILD and build to build the source code
|
||||
6. Select RUN_TEST and build which will execute the tests
|
||||
Reference in new issue
Block a user