Path: blob/main/extensions/copilot/test/e2e/tools.stest.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*--------------------------------------------------------------------------------------------*/456import path from 'path';7import { ssuite, stest } from '../base/stest';8import { fetchToolScenarios, generateToolTestRunner } from './toolSimTest';910export function shouldSkipAgentTests(): boolean {11return process.env.AGENT_TESTS !== '1';12}1314ssuite.optional(shouldSkipAgentTests, { title: 'toolCalling', location: 'panel' }, (inputPath) => {15const scenarioFolder = inputPath ?? path.join(__dirname, '..', 'test/scenarios/test-tools');16const scenarios = fetchToolScenarios(scenarioFolder);1718for (const scenario of scenarios) {19stest(scenario[0].question,20generateToolTestRunner(scenario));21}22});232425