GildedRose-Refactoring-Kata/Kotlin
Ollie Kennedy d87d813367
add kotlin gradle task to run texttest
`./gradlew -q text` now works

Co-authored-by: Marco Garofalo <marcogarofalo.personal@gmail.com>
2025-04-04 12:35:29 +01:00
..
gradle/wrapper
src Fixed texttests for Kotlin 2023-11-03 16:11:26 +01:00
.gitignore
build.gradle.kts add kotlin gradle task to run texttest 2025-04-04 12:35:29 +01:00
gradlew
gradlew.bat
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.