public class FileBasedPerTestRecording extends BaseCoverageRecording implements LivePerTestRecording
BaseCoverageRecording.Header
fileOnDisk, header
NULL
FORMAT
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()
Transcribe the coverage in some way, returning a memento of the transcription
|
createCoverageFolderFor, getDbVersion, getFile, getFormat, getWriteTimeStamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDbVersion, getFormat
public 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
LivePerTestRecording
transcribe
in interface LivePerTestRecording
IOException
PerTestRecordingTranscript.read(java.io.DataInputStream, com.atlassian.clover.CoverageDataSpec)
public boolean get(int sliceIndex)
public String getTestTypeName()
PerTestRecording
getTestTypeName
in interface PerTestRecording
public String getTestMethodName()
PerTestRecording
getTestMethodName
in interface PerTestRecording
public String getRuntimeTestName()
PerTestRecording
null
if runtime name is unknown; in such case usually fallback to PerTestRecording.getTestMethodName()
getRuntimeTestName
in interface PerTestRecording
null
if unknownpublic String getExitMessage()
getExitMessage
in interface PerTestRecording
public String getStackTrace()
getStackTrace
in interface PerTestRecording
public int getExitStatus()
getExitStatus
in interface PerTestRecording
public long getStart()
PerTestRecording
getStart
in interface PerTestRecording
public long getEnd()
PerTestRecording
getEnd
in interface PerTestRecording
public double getDuration()
PerTestRecording
getDuration
in interface PerTestRecording
public boolean hasResult()
hasResult
in interface PerTestRecording
public boolean isResultPassed()
isResultPassed
in interface PerTestRecording
Copyright © 2023 OpenClover.org. All rights reserved.