mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 15:01:28 +00:00
38 lines
524 B
Markdown
38 lines
524 B
Markdown
# 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
|
|
```
|
|
|
|
#### On Archlinux
|
|
|
|
run
|
|
|
|
sudo gradle -q text --args 30 > {Path}/texttests/ThirtyDays/stdout.gr
|
|
|
|
Where Path is the relative path to the texttests folder
|
|
At each run, the stdout.gr will be updated
|
|
|
|
### test cases:
|
|
|
|
There are two unit tests:
|
|
* GildedRoseTest
|
|
* ItemTest
|
|
|
|
Run
|
|
mvn clean test
|
|
|
|
### test coverage:
|
|
|
|
100%
|