GildedRose-Refactoring-Kata/Java
2023-02-19 16:52:21 +01:00
..
.mvn/wrapper Migrated to apache maven wrapper 2022-01-03 22:18:08 +01:00
gradle/wrapper update gradle wrapper & junit5 dependency 2020-06-04 10:22:28 +03:00
src test: adding toString unit test 2023-02-19 16:49:17 +01:00
.editorconfig Add editorconfig file for Java 2021-05-21 10:40:09 +02:00
.gitignore add gradle build capabilities 2019-11-18 17:42:08 +01:00
build.gradle make the gradle task for texttest slightly easier to use 2022-12-02 08:10:07 +01:00
gradlew add gradle build capabilities 2019-11-18 17:42:08 +01:00
gradlew.bat add gradle build capabilities 2019-11-18 17:42:08 +01:00
mvnw Migrated to apache maven wrapper 2022-01-03 22:18:08 +01:00
mvnw.cmd Migrated to apache maven wrapper 2022-01-03 22:18:08 +01:00
pom.xml feat: adding jacoco plugin in the POM 2023-02-19 16:33:37 +01:00
README.md chore: updating readme on java folder with the correct testing coverage 2023-02-19 16:52:21 +01:00
settings.gradle add gradle build capabilities 2019-11-18 17:42:08 +01:00

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:

The test coverage can be found the files located in target/site/jacoco/ To see the file, you must run mvn clean test before

Instructions	Cov.	100%
Missed Branches	Cov.	92%