Files
vscode/extensions/copilot/test/simulation/testInformation.ts
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00

28 lines
958 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { createServiceIdentifier } from '../../src/util/common/services';
import { SimulationTest } from '../base/stest';
export const ITestInformation = createServiceIdentifier<ITestInformation>('ITestInformation');
export interface ITestInformation {
fullTestName: string;
testFileName: string | undefined;
}
export class TestInformation implements ITestInformation {
constructor(
private readonly _testInfo: SimulationTest,
) { }
get fullTestName(): string {
return this._testInfo.fullName;
}
get testFileName(): string | undefined {
return this._testInfo.options.location?.path;
}
}