mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
1.4 KiB
1.4 KiB
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
- Tested with:
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
- Start CLion
- Select menu
File - Open... - Select folder
${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran - Select menu
Build - Build Project - Select menu
Run - Run...
How to build and run tests using Visual Studio 2019
- Start Visual Studio 2019
- Select
Open a local folder - Select folder
${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran - Wait for message
CMake generation finished.in the CMake output window at the bottom - Select ALL_BUILD and build to build the source code
- Select RUN_TEST and build which will execute the tests