public class FileBasedPerTestRecording extends BaseCoverageRecording implements LivePerTestRecording
BaseCoverageRecording.HeaderfileOnDisk, headerNULLFORMAT| Constructor and Description |
|---|
FileBasedPerTestRecording(CoverageRecorder recorder,
CloverBitSet coverage,
String testMethodName,
String runtimeTestName,
long start,
long end,
double duration,
RuntimeType testType,
int slice,
int testRunId,
int exitStatus,
ErrorInfo errorInfo) |
FileBasedPerTestRecording(String dbName,
long dbVersion,
int recorderId,
CloverBitSet coverage,
String testMethodName,
String runtimeTestName,
long start,
long end,
double duration,
RuntimeType testType,
int slice,
int testRunId,
int exitStatus,
ErrorInfo errorInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(int sliceIndex) |
double |
getDuration()
Return how long test was executing (in seconds, possibly with a nanosecond precision)
Note: this method may return more accurate value than "getEnd()-getStart()" as, for instance,
the System.nanoTime() can be used for measuring it.
|
long |
getEnd()
Return time when test has ended (in miliseconds, since epoch)
|
String |
getExitMessage() |
int |
getExitStatus() |
String |
getRuntimeTestName()
Return name of the test which it had during execution.
|
String |
getStackTrace() |
long |
getStart()
Return time when test has started (in miliseconds, since epoch)
|
String |
getTestMethodName()
Return name of the test method.
|
String |
getTestTypeName()
Return name of the class related with the executed test.
|
boolean |
hasResult() |
boolean |
isResultPassed() |
String |
transcribe()
See
PerTestRecordingTranscript#read(java.io.DataInputStream, com.atlassian.clover.CoverageDataSpec) |
createCoverageFolderFor, getDbVersion, getFile, getFormat, getWriteTimeStampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDbVersion, getFormatpublic FileBasedPerTestRecording(String dbName, long dbVersion, int recorderId, CloverBitSet coverage, String testMethodName, String runtimeTestName, long start, long end, double duration, RuntimeType testType, int slice, int testRunId, int exitStatus, ErrorInfo errorInfo)
public FileBasedPerTestRecording(CoverageRecorder recorder, CloverBitSet coverage, String testMethodName, String runtimeTestName, long start, long end, double duration, RuntimeType testType, int slice, int testRunId, int exitStatus, ErrorInfo errorInfo)
public String transcribe() throws IOException
PerTestRecordingTranscript#read(java.io.DataInputStream, com.atlassian.clover.CoverageDataSpec)transcribe in interface LivePerTestRecordingIOExceptionpublic boolean get(int sliceIndex)
public String getTestTypeName()
PerTestRecordinggetTestTypeName in interface PerTestRecordingpublic String getTestMethodName()
PerTestRecordinggetTestMethodName in interface PerTestRecordingpublic String getRuntimeTestName()
PerTestRecordingnull if runtime name is unknown; in such case usually fallback to PerTestRecording.getTestMethodName()getRuntimeTestName in interface PerTestRecordingnull if unknownpublic String getExitMessage()
getExitMessage in interface PerTestRecordingpublic String getStackTrace()
getStackTrace in interface PerTestRecordingpublic int getExitStatus()
getExitStatus in interface PerTestRecordingpublic long getStart()
PerTestRecordinggetStart in interface PerTestRecordingpublic long getEnd()
PerTestRecordinggetEnd in interface PerTestRecordingpublic double getDuration()
PerTestRecordinggetDuration in interface PerTestRecordingpublic boolean hasResult()
hasResult in interface PerTestRecordingpublic boolean isResultPassed()
isResultPassed in interface PerTestRecordingCopyright © 2023 OpenClover.org. All rights reserved.