GildedRose-Refactoring-Kata/fortran
2021-05-26 21:45:07 +02:00
..
src First commit of Fortran version of GildedRose 2021-05-25 19:52:50 +02:00
test Adding missing call to update_quality in GildedRose_unity_test 2021-05-26 21:45:07 +02:00
CMakeLists.txt First commit of Fortran version of GildedRose 2021-05-25 19:52:50 +02:00
README.md First commit of Fortran version of GildedRose 2021-05-25 19:52:50 +02:00

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

  1. Start CLion
  2. Select menu File - Open...
  3. Select folder ${GIT_FOLDER}/GildedRose-Refactoring-Kata/fortran
  4. Select menu Build - Build Project
  5. 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