feat(版本详情): 优化任务统计与测试轮次

This commit is contained in:
Script Generator
2026-06-26 15:12:24 +08:00
parent 914e6180c1
commit 2d802318fa
16 changed files with 631 additions and 65 deletions

View File

@@ -1,5 +1,5 @@
import type { TestCase, TestCaseStatus } from './test-case';
import { canTcTransition } from './test-case';
import { canTcTransition, getTestCaseRoundNo } from './test-case';
export interface TestCaseWorkflowResult {
ok: boolean;
@@ -16,6 +16,7 @@ export interface TestCaseTransitionOptions {
export function normalizeTestCaseOnCreate(testCase: TestCase): TestCase {
return {
...testCase,
roundNo: getTestCaseRoundNo(testCase),
status: 'pending',
startedAt: undefined,
completedAt: undefined,