extent-framework / extentreports-csharp

Extent Reporting Library, .NET
http://extentreports.com
Apache License 2.0
49 stars 40 forks source link

Duration formatting #218

Closed jrod567 closed 1 day ago

jrod567 commented 2 days ago

In v4, the duration of test was automatically formatted to hours/min/seconds/ms. In v5, it appears to always be in ms.

Is it possible to format the duration of a test?

For example:

image

anshooarora commented 2 days ago

Agreed. Version 4 impl had cleaner representation:

<p class="duration text-sm">@test.RunDuration.ToString("''h'h:'m'm:'s's+'fff'ms'")</p> 
<span class="datetime">@test.StartTime.ToString("HH:mm:ss tt")</span>

Impacted line of code: https://github.com/extent-framework/extentreports-csharp/blob/master/ExtentReports/Views/Spark/Partials/SparkTestSPA.cshtml#L78

anshooarora commented 1 day ago

Closing this as the above PR reverts to the old way of showing a test's run duration:

image