-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Progress feature, compiling + unit tests
- Loading branch information
Showing
13 changed files
with
331 additions
and
79 deletions.
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
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
18 changes: 18 additions & 0 deletions
18
...t.TestPlatform.CommunicationUtilities/Messages/MultiTestRunFinalizationProgressPayload.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,18 @@ | ||
// 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.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel | ||
{ | ||
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; | ||
|
||
/// <summary> | ||
/// Multi test run finalization complete payload. | ||
/// </summary> | ||
public class MultiTestRunFinalizationProgressPayload | ||
{ | ||
/// <summary> | ||
/// Gets or sets the multi test run finalization complete args. | ||
/// </summary> | ||
public MultiTestRunFinalizationProgressEventArgs FinalizationProgressEventArgs { get; set; } | ||
} | ||
} |
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
50 changes: 50 additions & 0 deletions
50
...osoft.TestPlatform.ObjectModel/Client/Events/MultiTestRunFinalizationCompleteEventArgs.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,50 @@ | ||
// 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.VisualStudio.TestPlatform.ObjectModel.Client | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
[DataContract] | ||
public class MultiTestRunFinalizationCompleteEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Default constructor. | ||
/// </summary> | ||
/// <param name="isCanceled">Specifies whether the finalization is canceled.</param> | ||
/// <param name="isAborted">Specifies whether the finalization is aborted.</param> | ||
/// <param name="error">Specifies the error encountered during the execution of the finalization.</param> | ||
public MultiTestRunFinalizationCompleteEventArgs(bool isCanceled, bool isAborted, Exception error) | ||
{ | ||
this.IsCanceled = isCanceled; | ||
this.IsAborted = isAborted; | ||
this.Error = error; | ||
} | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether the finalization is aborted or not. | ||
/// </summary> | ||
[DataMember] | ||
public bool IsAborted { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether the finalization is canceled or not. | ||
/// </summary> | ||
[DataMember] | ||
public bool IsCanceled { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the error encountered during the finalization of the test runs. Null if there is no error. | ||
/// </summary> | ||
[DataMember] | ||
public Exception Error { get; private set; } | ||
|
||
/// <summary> | ||
/// Get or Sets the Metrics | ||
/// </summary> | ||
[DataMember] | ||
public IDictionary<string, object> Metrics { get; set; } | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
...osoft.TestPlatform.ObjectModel/Client/Events/MultiTestRunFinalizationProgressEventArgs.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,51 @@ | ||
// 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.VisualStudio.TestPlatform.ObjectModel.Client | ||
{ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
[DataContract] | ||
public class MultiTestRunFinalizationProgressEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Default constructor. | ||
/// </summary> | ||
/// <param name="currentHandlerIndex">Specifies current handler index.</param> | ||
/// <param name="currentHandlerName">Specifies current handler name.</param> | ||
/// <param name="currentHandlerProgress">Specifies current handler progress.</param> | ||
/// <param name="handlersCount">Specifies the overall number of handlers.</param> | ||
public MultiTestRunFinalizationProgressEventArgs(long currentHandlerIndex, string currentHandlerName, long currentHandlerProgress, long handlersCount) | ||
{ | ||
CurrentHandlerIndex = currentHandlerIndex; | ||
CurrentHandlerName = currentHandlerName; | ||
CurrentHandlerProgress = currentHandlerProgress; | ||
HandlersCount = handlersCount; | ||
} | ||
|
||
/// <summary> | ||
/// Gets a current handler index. | ||
/// </summary> | ||
[DataMember] | ||
public long CurrentHandlerIndex { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets a current handler name. | ||
/// </summary> | ||
[DataMember] | ||
public string CurrentHandlerName { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets a current handler progress. | ||
/// </summary> | ||
[DataMember] | ||
public long CurrentHandlerProgress { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the overall number of handlers. | ||
/// </summary> | ||
[DataMember] | ||
public long HandlersCount { get; private set; } | ||
} | ||
} |
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
Oops, something went wrong.