-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
Given:
@TempDir(cleanup = CleanupMode.ON_SUCCESS)
File bareRepo;
@TempDir(cleanup = CleanupMode.ON_SUCCESS)
File projectDir;When an error occurs
Then include variable name in messaging
Jan 27, 2025 11:56:57 AM org.junit.jupiter.engine.extension.TempDirectory$CloseablePath close
INFO: Skipping cleanup of temp dir /tmp/junit-3303696269557854236 for projectDir due to cleanup mode configuration.
Jan 27, 2025 11:56:57 AM org.junit.jupiter.engine.extension.TempDirectory$CloseablePath close
INFO: Skipping cleanup of temp dir bareRepo /tmp/junit-9223851550808936974 for bareRepo due to cleanup mode configuration.
existing behavior it's hard to tell which is which
Jan 27, 2025 11:56:57 AM org.junit.jupiter.engine.extension.TempDirectory$CloseablePath close
INFO: Skipping cleanup of temp dir /tmp/junit-3303696269557854236 due to cleanup mode configuration.
Jan 27, 2025 11:56:57 AM org.junit.jupiter.engine.extension.TempDirectory$CloseablePath close
INFO: Skipping cleanup of temp dir /tmp/junit-9223851550808936974 due to cleanup mode configuration.
I'm not fussy on how the field name is output, I'd just like to see it in this messaging. P.S. Thanks for CleanupMode, love it.
sbrannen