Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/simulation/testInformation.ts
13388 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
import { createServiceIdentifier } from '../../src/util/common/services';
6
import { SimulationTest } from '../base/stest';
7
8
export const ITestInformation = createServiceIdentifier<ITestInformation>('ITestInformation');
9
10
export interface ITestInformation {
11
fullTestName: string;
12
testFileName: string | undefined;
13
}
14
15
export class TestInformation implements ITestInformation {
16
constructor(
17
private readonly _testInfo: SimulationTest,
18
) { }
19
20
get fullTestName(): string {
21
return this._testInfo.fullName;
22
}
23
24
get testFileName(): string | undefined {
25
return this._testInfo.options.location?.path;
26
}
27
}
28
29