Skip to content

Commit

Permalink
fixing #153
Browse files Browse the repository at this point in the history
  • Loading branch information
elv1s42 committed May 26, 2020
1 parent 3fb3ebd commit 61c01ea
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .vs/Ghpr.Core/config/applicationhost.config
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
</site>
<site name="Ghpr.Controller.ts" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\Evgeniy.Kosjakov\Documents\GitHub\Ghpr.Core\Ghpr.Controller.ts" />
<virtualDirectory path="/" physicalPath="C:\GitHub\Ghpr.Core\Ghpr.Controller.ts" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:63671:localhost" />
Expand Down
2 changes: 1 addition & 1 deletion Ghpr.Controller.ts/Ghpr.Controller.ts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
<TypeScriptToolsVersion>3.7</TypeScriptToolsVersion>
<TypeScriptToolsVersion>3.8</TypeScriptToolsVersion>
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class TestRun {
name: string;
fullName: string;
description: string;
duration: number;
testInfo: ItemInfo;
testStackTrace: string;
testMessage: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class TestRunDtoMapper {
testRunDto.name = testRun.name;
testRunDto.categories = testRun.categories;
testRunDto.description = testRun.description;
testRunDto.duration = testRun.duration;
const diffTime = testRun.testInfo.finish.valueOf() - testRun.testInfo.start.valueOf();
const diffSecs = Math.round(((diffTime / 1000) + Number.EPSILON) * 100) / 100;
testRunDto.duration = diffSecs;
testRunDto.events = eventDtos;
testRunDto.fullName = testRun.fullName;
testRunDto.output = SimpleItemInfoDtoMapper.map(testRun.output);
Expand Down
4 changes: 3 additions & 1 deletion Ghpr.Controller.ts/report/src/js/ghpr.controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Ghpr.Controller.ts/report/src/js/ghpr.controller.js.map

Large diffs are not rendered by default.

0 comments on commit 61c01ea

Please sign in to comment.