Skip to main content

Class: TestCaseRecorder

testUtil/TestCaseRecorder.TestCaseRecorder

Constructors

constructor

new TestCaseRecorder(graph)

Parameters

NameType
graphGraph

Defined in

testUtil/TestCaseRecorder.ts:105

Properties

active

Private active: boolean = false

Defined in

testUtil/TestCaseRecorder.ts:82


calibrationStyle

Private calibrationStyle: TextEditorDecorationType

Defined in

testUtil/TestCaseRecorder.ts:98


captureFinalThatMark

Private captureFinalThatMark: boolean = false

Defined in

testUtil/TestCaseRecorder.ts:101


disposables

Private disposables: Disposable[] = []

Defined in

testUtil/TestCaseRecorder.ts:90


extraSnapshotFields

Private Optional extraSnapshotFields: keyof TestCaseSnapshot[]

Defined in

testUtil/TestCaseRecorder.ts:93


fixtureRoot

Private fixtureRoot: null | string

Defined in

testUtil/TestCaseRecorder.ts:85


isDecorationsTest

Private isDecorationsTest: boolean = false

Defined in

testUtil/TestCaseRecorder.ts:89


isErrorTest

Private isErrorTest: boolean = false

Defined in

testUtil/TestCaseRecorder.ts:95


isHatTokenMapTest

Private isHatTokenMapTest: boolean = false

Defined in

testUtil/TestCaseRecorder.ts:88


isSilent

Private Optional isSilent: boolean

Defined in

testUtil/TestCaseRecorder.ts:91


originalIde

Private originalIde: undefined | IDE

Defined in

testUtil/TestCaseRecorder.ts:103


originalTextEditorOptions

Private originalTextEditorOptions: TextEditorOptions = {}

We use this variable to capture editor settings and then restore them

Defined in

testUtil/TestCaseRecorder.ts:97


paused

Private paused: boolean = false

Defined in

testUtil/TestCaseRecorder.ts:94


spyIde

Private spyIde: undefined | SpyIDE

Defined in

testUtil/TestCaseRecorder.ts:102


startTimestamp

Private Optional startTimestamp: bigint

Defined in

testUtil/TestCaseRecorder.ts:92


targetDirectory

Private targetDirectory: null | string = null

Defined in

testUtil/TestCaseRecorder.ts:86


testCase

Private testCase: null | TestCase = null

Defined in

testUtil/TestCaseRecorder.ts:87


workspaceName

Private workspaceName: null | string

Defined in

testUtil/TestCaseRecorder.ts:84


workspacePath

Private workspacePath: null | string

Defined in

testUtil/TestCaseRecorder.ts:83

Methods

calculateFilePath

Private calculateFilePath(testCase): string

Parameters

NameType
testCaseTestCase

Returns

string

Defined in

testUtil/TestCaseRecorder.ts:437


commandErrorHook

commandErrorHook(error): Promise<void>

Parameters

NameType
errorError

Returns

Promise<void>

Defined in

testUtil/TestCaseRecorder.ts:457


dispose

dispose(): void

Returns

void

Defined in

testUtil/TestCaseRecorder.ts:476


finallyHook

finallyHook(): void

Returns

void

Defined in

testUtil/TestCaseRecorder.ts:466


finishTestCase

finishTestCase(): Promise<void>

Returns

Promise<void>

Defined in

testUtil/TestCaseRecorder.ts:365


init

init(): void

Returns

void

Defined in

testUtil/TestCaseRecorder.ts:124


isActive

isActive(): boolean

Returns

boolean

Defined in

testUtil/TestCaseRecorder.ts:200


postCommandHook

postCommandHook(returnValue): Promise<void>

Parameters

NameType
returnValueany

Returns

Promise<void>

Defined in

testUtil/TestCaseRecorder.ts:346


preCommandHook

preCommandHook(command, context): Promise<void>

Parameters

NameType
commandnever & never & never & CommandV3 & { version: 3 }
contextTestCaseContext

Returns

Promise<void>

Defined in

testUtil/TestCaseRecorder.ts:307


promptNewSubdirectory

Private promptNewSubdirectory(): Promise<undefined | string>

Returns

Promise<undefined | string>

Defined in

testUtil/TestCaseRecorder.ts:419


promptSubdirectory

Private promptSubdirectory(): Promise<undefined | string>

Returns

Promise<undefined | string>

Defined in

testUtil/TestCaseRecorder.ts:388


recordStartTime

Private recordStartTime(showCalibrationDisplay): Promise<string>

Parameters

NameType
showCalibrationDisplayboolean

Returns

Promise<string>

Defined in

testUtil/TestCaseRecorder.ts:277


start

start(arg?): Promise<null | { startTimestampISO: string }>

Parameters

NameType
arg?RecordTestCaseCommandArg

Returns

Promise<null | { startTimestampISO: string }>

Defined in

testUtil/TestCaseRecorder.ts:204


stop

stop(): void

Returns

void

Defined in

testUtil/TestCaseRecorder.ts:302


writeToFile

Private writeToFile(outPath, fixture): Promise<void>

Parameters

NameType
outPathstring
fixturestring

Returns

Promise<void>

Defined in

testUtil/TestCaseRecorder.ts:384