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

@@ -33,6 +33,12 @@ test('normalizeTestCaseOnCreate forces pending and clears actual timestamps', ()
assert.equal(result.completedAt, undefined);
});
test('normalizeTestCaseOnCreate defaults missing roundNo to the first test round', () => {
const result = normalizeTestCaseOnCreate(tc());
assert.equal(result.roundNo, 1);
});
test('pending to running writes startedAt', () => {
const result = applyTestCaseTransition(tc(), 'running', {
now: new Date('2026-06-25T01:00:00.000Z'),