public class LogDirectory extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
circleAwareLogDirectory(Class<?> testClass)
For tests running on CircleCI, save logs into
$CIRCLE_ARTIFACTS/dockerLogs/<testClassName>. |
static String |
circleAwareLogDirectory(String logDirectoryName) |
static String |
gradleDockerLogsDirectory(Class<?> testClass)
Save logs into a new folder, $project/build/dockerLogs/<testClassName>.
|
public static String circleAwareLogDirectory(Class<?> testClass)
$CIRCLE_ARTIFACTS/dockerLogs/<testClassName>.
This ensures partial logs can be recovered if the build is cancelled or times out, and
also avoids needless copying.
Otherwise, save logs from local runs to a folder inside $project/build/dockerLogs named
after the test class.testClass - the JUnit test class whose name will appear on the log folderCopyright © 2022 Pivotal Software, Inc.. All rights reserved.