Files
vscode/extensions/copilot/test/simulation/workbench/components/testCaseSummary.tsx
T
Matt BiernerandGitHub 3c8134184b Enable no-unexternalized-strings in repo (#2448)
Enables the same `no-unexternalized-strings` with have in `vscode` in this repo. This make sure we have a more consistent style across repos and when generating edits
2025-12-05 18:45:12 +00:00

47 lines
1.3 KiB
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ArrowRight12Regular } from '@fluentui/react-icons';
import * as mobxlite from 'mobx-react-lite';
import * as React from 'react';
import { TestRun } from '../stores/testRun';
type TestCaseSummaryProps = {
currentRun: TestRun;
baselineRun?: TestRun;
};
export const TestCaseSummary = mobxlite.observer(
({ currentRun, baselineRun }: TestCaseSummaryProps) => {
return (
<div>
<div className='test-case-count'>
<span>Total generated test case numbers: </span>
{baselineRun
? <>
<span>{baselineRun.generatedTestCaseCount}</span>
<ArrowRight12Regular />
</>
: null
}
<span>{currentRun.generatedTestCaseCount}</span>
</div>
<div className='test-assertion-count'>
<span>Total generated assertions numbers: </span>
{baselineRun
? <>
<span>{baselineRun.generatedAssertCount}</span>
<ArrowRight12Regular />
</>
: null
}
<span>{currentRun.generatedAssertCount}</span>
</div>
</div>
);
}
);