mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-18 13:17:05 +01:00
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
47 lines
1.3 KiB
TypeScript
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>
|
|
);
|
|
}
|
|
); |