GildedRose-Refactoring-Kata/Java
2023-02-19 16:49:17 +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: adding jacoco reports 2023-02-19 16:43:12 +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

Element	Missed Instructions	Cov.	Missed Branches	Cov.	Missed	Cxty	Missed	Lines	Missed	Methods	Missed	Classes
Total	18 of   287	                93%	    3 of 38	92%	    4  	    29	    1	    44	    1	    10	    0	    2
com.gildedrose	18269	            93%	    335	    92%	    4	    29  	1	    44	    1	    10  	0	    2