GildedRose-Refactoring-Kata/Kotlin
2025-05-12 09:39:48 +01:00
..
gradle/wrapper Upgradle to 8.13 for Kotlin 2025-04-14 12:55:32 +01:00
src Reformat Item ctor and simplify toString 2025-05-12 09:39:48 +01:00
.gitignore Use gradle to build kotlin files 2018-01-31 10:52:53 +01:00
build.gradle.kts Upgradle to 8.13 for Kotlin 2025-04-14 12:55:32 +01:00
gradlew Upgrade build to: Kotlin 1.9.10, Gradle 8.x, JUnit 5.10.0 2023-10-10 21:33:32 +02:00
gradlew.bat Upgrade build to: Kotlin 1.9.10, Gradle 8.x, JUnit 5.10.0 2023-10-10 21:33:32 +02:00
README.md Fixed texttests for Kotlin 2023-11-03 16:11:26 +01:00
texttest_rig.py Fixed texttests for Kotlin 2023-11-03 16:11:26 +01:00

Gilded Rose starting position in Kotlin

Run the Text Fixture from Command-Line

./gradlew -q text

Specify Number of Days

For e.g. 10 days:

./gradlew run --args 10

You should make sure the gradle commands shown above work when you execute them in a terminal before trying to use TextTest (see below).

Run the TextTest approval test that comes with this project

There are instructions in the TextTest Readme for setting up TextTest. What's unusual for the Java version is there are two executables listed in config.gr for Java. One uses Gradle wrapped in a python script, the other relies on your CLASSPATH being set correctly in environment.gr.