mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
| .. | ||
| .mvn/wrapper | ||
| gradle/wrapper | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| build.gradle | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||
| README.md | ||
| settings.gradle | ||
| texttest_rig.py | ||
Gilded Rose starting position in Java
Run the TextTest Fixture from Command-Line
./gradlew -q text
Specify Number of Days
For e.g. 10 days:
./gradlew -q text --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. The first uses Gradle wrapped in a python script. Uncomment these lines to use it:
executable:${TEXTTEST_HOME}/Java/texttest_rig.py
interpreter:python
The other relies on your CLASSPATH being set correctly in environment.gr. Uncomment these lines to use it instead:
executable:com.gildedrose.TexttestFixture
interpreter:java