From 31cb865fea32760259cbc62ed56cd97af0666d5d Mon Sep 17 00:00:00 2001 From: Jiapeng Xu Date: Wed, 25 Oct 2023 10:02:49 +0800 Subject: [PATCH] Set test case duration --- src/yunit/TestAdapter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/yunit/TestAdapter.cs b/src/yunit/TestAdapter.cs index a145057..06f3b8b 100644 --- a/src/yunit/TestAdapter.cs +++ b/src/yunit/TestAdapter.cs @@ -242,6 +242,7 @@ private async Task RunTest(ITestExecutionRecorder log, TestCase test, bool inOnl finally { result.EndTime = DateTime.UtcNow; + result.Duration = result.EndTime - result.StartTime; lock (s_lock) {