mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-06 02:02:31 +00:00
| .. | ||
| gradle/wrapper | ||
| src | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradlew | ||
| gradlew.bat | ||
| README.md | ||
| texttest_rig.py | ||
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.
Project info
- Code is highly unreadable and impossible to extend
- Algorithm and test cases are unknown, I do not trust that
TexttestFixturescovers all paths so I want to validate it with jacoco - Codebase is just 60 LOC and edge-values seems to be small values
Plan of action
- Generate all test cases / convert
TexttestFixturesto tests - Break complex statements, make code longer and simpler
- understand algorithm and propose better solution