From d66bb37929e0a0250571429304824c78f836bc60 Mon Sep 17 00:00:00 2001 From: irushx <39490127+irushx@users.noreply.github.com> Date: Wed, 25 Oct 2023 21:31:46 +0800 Subject: [PATCH] Set test case duration (#126) Co-authored-by: Jiapeng Xu --- 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) {