public class PerTestRecordingTranscript extends BaseCoverageRecording implements PerTestRecording, RecordingTranscript
BaseCoverageRecording.HeaderfileOnDisk, headerFORMAT| Constructor and Description |
|---|
PerTestRecordingTranscript(BaseCoverageRecording.Header header,
File fileOnDisk) |
PerTestRecordingTranscript(CloverBitSet coverage,
File fileOnDisk,
long dbVersion,
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 |
|---|---|
void |
applyTo(BitSet hits) |
boolean |
get(int slotIndex) |
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() |
void |
read(DataInputStream in,
CoverageDataSpec spec) |
String |
toString() |
createCoverageFolderFor, getDbVersion, getFile, getFormat, getWriteTimeStampclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWriteTimeStampgetDbVersion, getFormatpublic PerTestRecordingTranscript(BaseCoverageRecording.Header header, File fileOnDisk)
public PerTestRecordingTranscript(CloverBitSet coverage, File fileOnDisk, long dbVersion, String testMethodName, String runtimeTestName, long start, long end, double duration, RuntimeType testType, int slice, int testRunId, int exitStatus, ErrorInfo errorInfo)
public void read(DataInputStream in, CoverageDataSpec spec) throws IOException
read in interface RecordingTranscriptIOExceptionFileBasedPerTestRecording.transcribe()public boolean get(int slotIndex)
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 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 PerTestRecordingpublic String getStackTrace()
getStackTrace in interface PerTestRecordingpublic String getExitMessage()
getExitMessage in interface PerTestRecordingpublic void applyTo(BitSet hits)
Copyright © 2024 OpenClover.org. All rights reserved.