Class: TestCaseRecorder
testUtil/TestCaseRecorder.TestCaseRecorder
Constructors
constructor
• new TestCaseRecorder(graph
)
Parameters
Name | Type |
---|---|
graph | Graph |
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
Name | Type |
---|---|
testCase | TestCase |
Returns
string
Defined in
testUtil/TestCaseRecorder.ts:437
commandErrorHook
▸ commandErrorHook(error
): Promise
<void
>
Parameters
Name | Type |
---|---|
error | Error |
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
Name | Type |
---|---|
returnValue | any |
Returns
Promise
<void
>
Defined in
testUtil/TestCaseRecorder.ts:346
preCommandHook
▸ preCommandHook(command
, context
): Promise
<void
>
Parameters
Name | Type |
---|---|
command | never & never & never & CommandV3 & { version : 3 } |
context | TestCaseContext |
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
Name | Type |
---|---|
showCalibrationDisplay | boolean |
Returns
Promise
<string
>
Defined in
testUtil/TestCaseRecorder.ts:277
start
▸ start(arg?
): Promise
<null
| { startTimestampISO
: string
}>
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
outPath | string |
fixture | string |
Returns
Promise
<void
>
Defined in
testUtil/TestCaseRecorder.ts:384