Path: blob/main/extensions/copilot/test/simulation/workbench/components/testCaseSummary.tsx
13399 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*--------------------------------------------------------------------------------------------*/45import { ArrowRight12Regular } from '@fluentui/react-icons';6import * as mobxlite from 'mobx-react-lite';7import * as React from 'react';8import { TestRun } from '../stores/testRun';910type TestCaseSummaryProps = {11currentRun: TestRun;12baselineRun?: TestRun;13};1415export const TestCaseSummary = mobxlite.observer(16({ currentRun, baselineRun }: TestCaseSummaryProps) => {17return (18<div>19<div className='test-case-count'>20<span>Total generated test case numbers: </span>21{baselineRun22? <>23<span>{baselineRun.generatedTestCaseCount}</span>24<ArrowRight12Regular />25</>26: null27}2829<span>{currentRun.generatedTestCaseCount}</span>30</div>31<div className='test-assertion-count'>32<span>Total generated assertions numbers: </span>33{baselineRun34? <>35<span>{baselineRun.generatedAssertCount}</span>36<ArrowRight12Regular />37</>38: null39}4041<span>{currentRun.generatedAssertCount}</span>42</div>43</div>44);45}46);4748