Merge pull request #382 from nitsanavni/java-text-test

Java: run text fixture from cli
This commit is contained in:
Emily Bache 2022-11-28 08:08:59 +01:00 committed by GitHub
commit 0aab1b9ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

15
Java/README.md Normal file
View File

@ -0,0 +1,15 @@
# Gilded Rose starting position in Java
## Run the Text Fixture from Command-Line
```
./gradlew -q text
```
### Specify Number of Days
For e.g. 10 days:
```
./gradlew -q text --args 10
```

View File

@ -19,3 +19,8 @@ sourceCompatibility = '1.8'
test {
useJUnitPlatform()
}
task text(type: JavaExec) {
main = "com.gildedrose.TexttestFixture"
classpath = sourceSets.test.runtimeClasspath
}