Path: blob/main/extensions/copilot/test/simulation/testInformation.ts
13388 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/4import { createServiceIdentifier } from '../../src/util/common/services';5import { SimulationTest } from '../base/stest';67export const ITestInformation = createServiceIdentifier<ITestInformation>('ITestInformation');89export interface ITestInformation {10fullTestName: string;11testFileName: string | undefined;12}1314export class TestInformation implements ITestInformation {15constructor(16private readonly _testInfo: SimulationTest,17) { }1819get fullTestName(): string {20return this._testInfo.fullName;21}2223get testFileName(): string | undefined {24return this._testInfo.options.location?.path;25}26}272829