-
Notifications
You must be signed in to change notification settings - Fork 326
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
Making Trx Logger Hierarchical for ordered test and data driven tests #1330
Merged
Merged
Changes from 29 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
2b6ce73
making classes internal
abhishkk c6dfed1
Model classes to be consumed by trx logger
abhishkk c0628c9
initial changes for trx hierarchical
abhishkk f7a513e
refactoring
abhishkk 9fe2b79
fix for hierarchical level more than 1
abhishkk 04dcb99
Merge branch 'master' into trxLogger
abhishekkumawat23 def71ab
Merge branch 'master' of https://github.com/Microsoft/vstest into trx…
abhishkk f7efc36
removing unnecessary inner resutls count
abhishkk 0e93fbd
Merge branch 'master' of https://github.com/Microsoft/vstest into trx…
abhishkk 982160a
refactoring
abhishkk 7f98cfd
Interfaces refactoring
abhishkk 2daf495
refactoring
abhishkk b7168ee
refactoring
abhishkk a128e79
Refactoring
abhishkk 8851e47
refactoring
abhishkk a565b9e
refactoring
abhishkk 59d4035
remove debugger
abhishkk d7d1159
Merge branch 'master' into trxlogger
abhishekkumawat23 7c38847
Review comments
abhishkk 23a65f5
Merge branch 'trxlogger' of https://github.com/abhishekkumawat23/vste…
abhishkk 14e3f04
Merge branch 'master' into trxlogger
abhishekkumawat23 e738cca
Unit tests
abhishkk 373c938
concurrent hash map
abhishkk 71b2df9
Merge branch 'trxLogger' of https://github.com/abhishekkumawat23/vste…
abhishkk 6ae9bd5
Fixes
abhishkk 329f9b6
Merge branch 'master' of https://github.com/Microsoft/vstest into trx…
abhishkk f2c456b
Merge branch 'master' into trxlogger
abhishekkumawat23 4f1dc86
Merge branch 'master' into trxlogger
abhishekkumawat23 d627e29
Merge branch 'master' into trxlogger
abhishkk 7f41647
Merge branch 'master' into trxlogger
abhishkk f3da229
PR comments
abhishkk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Microsoft.TestPlatform.Extensions.TrxLogger/Interfaces/ITestAggregation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
internal interface ITestAggregation : ITestElement | ||
{ | ||
Dictionary<Guid, TestLink> TestLinks { get; } | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Microsoft.TestPlatform.Extensions.TrxLogger/Interfaces/ITestElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel | ||
{ | ||
internal interface ITestElement | ||
{ | ||
TestId Id { get; } | ||
string Name { get; set; } | ||
string Owner { get; set; } | ||
string Storage { get; set; } | ||
string Adapter { get; } | ||
int Priority { get; set; } | ||
bool IsRunnable { get; } | ||
TestExecId ExecutionId { get; set; } | ||
TestExecId ParentExecutionId { get; set; } | ||
TestListCategoryId CategoryId { get; set; } | ||
TestCategoryItemCollection TestCategories { get; } | ||
TestType TestType { get; } | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Microsoft.TestPlatform.Extensions.TrxLogger/Interfaces/ITestResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel | ||
{ | ||
|
||
using System; | ||
|
||
internal interface ITestResult | ||
{ | ||
TestResultId Id { get; } | ||
string ResultType { get; set; } | ||
string StdOut { get; set; } | ||
string StdErr { get; set; } | ||
string DebugTrace { get; set; } | ||
string TestResultsDirectory { get; } | ||
string RelativeTestResultsDirectory { get; } | ||
string ErrorMessage { get; set; } | ||
string ErrorStackTrace { get; set; } | ||
string ComputerName { get; } | ||
string[] TextMessages { get; set; } | ||
int DataRowInfo { get; set; } | ||
DateTime StartTime { get; set; } | ||
DateTime EndTime { get; set; } | ||
TimeSpan Duration { get; set; } | ||
TestOutcome Outcome { get; set; } | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Microsoft.TestPlatform.Extensions.TrxLogger/Interfaces/ITestResultAggregation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel | ||
{ | ||
using System.Collections.Generic; | ||
|
||
internal interface ITestResultAggregation : ITestResult | ||
{ | ||
List<ITestResult> InnerResults { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/Microsoft.TestPlatform.Extensions.TrxLogger/ObjectModel/OrderedTestElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.TestPlatform.Extensions.TrxLogger.ObjectModel | ||
{ | ||
using System; | ||
using Microsoft.TestPlatform.Extensions.TrxLogger.Utility; | ||
using Microsoft.TestPlatform.Extensions.TrxLogger.XML; | ||
|
||
/// <summary> | ||
/// Ordered test element. | ||
/// </summary> | ||
internal class OrderedTestElement : TestElementAggregation, IXmlTestStoreCustom | ||
{ | ||
public OrderedTestElement(Guid id, string name, string adapter) : base(id, name, adapter) { } | ||
|
||
string IXmlTestStoreCustom.ElementName | ||
{ | ||
get { return Constants.OrderedTestElementName; } | ||
} | ||
|
||
string IXmlTestStoreCustom.NamespaceUri | ||
{ | ||
get { return null; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the test type. | ||
/// </summary> | ||
public override TestType TestType | ||
{ | ||
get { return Constants.OrderedTestType; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why null