Skip to content

Commit

Permalink
Add invidious test duration in list
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Oct 15, 2023
1 parent e80fcab commit 64f3683
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ function RunTests(instance as string, content as object) as void
for each testNode in testNodes
timer.Mark()
m[testNode.func](instance, testNode)

testNode.duration = timer.TotalMilliseconds()
testNode.title = `${testNode.title} (${testNode.duration}ms)`

if testNode.state = "failed"
LogError(testNode.details)
Expand Down

0 comments on commit 64f3683

Please sign in to comment.