Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRX logger Started Time fix #253

Merged
merged 5 commits into from
Dec 2, 2016
Merged

TRX logger Started Time fix #253

merged 5 commits into from
Dec 2, 2016

Conversation

singhsarab
Copy link
Contributor

Fix for Started time for the run, in case the start time for the first test case is default(DateTime).
Current scenario: For an Nunit Test, if the first test case is skipped test, the Start Time for that test is default(DateTime), hence the run duration comes out to be zero seconds.

@codito
Copy link
Contributor

codito commented Nov 29, 2016

IMHO a logger is not at liberty to decide the StartTime of a test result. It should just use the value provided by an Adapter.

It is adapter's responsibility to fill in the correct value.

@AbhitejJohn
Copy link
Contributor

@codito: True but don't see why the entire run should have an incorrect summary just because an adapter returns an incorrect time value in a particular scenario. This looks more of a fail safe default.

@codito
Copy link
Contributor

codito commented Nov 29, 2016

@AbhitejJohn it is quite important to safe guard against crashes/reliability issues where an extension bug can jeopardize the entire platform. However not sure if it is possible for a platform to safe guard effectively w.r.t functional issues e.g. there can be a case where an adapter can send a StartTime later than a EndTime :-)

We want to include the start up cost in the duration and remove the dependency on the StartTime stamped by the adapter.
@codito codito added this to the Preview 110.2 - 20161202 milestone Nov 30, 2016
@codito
Copy link
Contributor

codito commented Nov 30, 2016

👍

@codito codito merged commit a678579 into microsoft:master Dec 2, 2016
@codito codito deleted the TrxLoggerStartTimeFix branch December 2, 2016 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants