diff --git a/docs/content/v1.1.x-kor/release-notes/_index.md b/docs/content/v1.1.x-kor/release-notes/_index.md index c875d29c2..cb709090f 100644 --- a/docs/content/v1.1.x-kor/release-notes/_index.md +++ b/docs/content/v1.1.x-kor/release-notes/_index.md @@ -9,6 +9,8 @@ sectionStart ## v.1.1.4 Fix not registering size API if decomposing. +Add enrich the failed test log with seed. + sectionEnd sectionStart diff --git a/docs/content/v1.1.x/release-notes/_index.md b/docs/content/v1.1.x/release-notes/_index.md index 84dc06313..62a07a2f3 100644 --- a/docs/content/v1.1.x/release-notes/_index.md +++ b/docs/content/v1.1.x/release-notes/_index.md @@ -9,6 +9,8 @@ sectionStart ## v.1.1.4 Fix not registering size API if decomposing. +Add enrich the failed test log with seed. + sectionEnd sectionStart diff --git a/fixture-monkey-junit-jupiter/src/main/java/com/navercorp/fixturemonkey/junit/jupiter/extension/FixtureMonkeySeedExtension.java b/fixture-monkey-junit-jupiter/src/main/java/com/navercorp/fixturemonkey/junit/jupiter/extension/FixtureMonkeySeedExtension.java index f607d8e92..b2f517df5 100644 --- a/fixture-monkey-junit-jupiter/src/main/java/com/navercorp/fixturemonkey/junit/jupiter/extension/FixtureMonkeySeedExtension.java +++ b/fixture-monkey-junit-jupiter/src/main/java/com/navercorp/fixturemonkey/junit/jupiter/extension/FixtureMonkeySeedExtension.java @@ -63,8 +63,13 @@ private void setSeed(long seed) { * This method logs the seed value when a test method execution fails. **/ private void logSeedIfTestFailed(ExtensionContext context) { + Class testClass = context.getRequiredTestClass(); Method testMethod = context.getRequiredTestMethod(); LOGGER.error( - String.format("Test Method [%s] failed with seed: %d", testMethod.getName(), Randoms.currentSeed())); + "Test Method [{}#{}] failed with seed: {}", + testClass.getSimpleName(), + testMethod.getName(), + Randoms.currentSeed() + ); } }