-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating run and discovery start events and exposing it to loggers (#…
…1083) * Creating and invoking run and discovery start events * Exposing discovery start and run start events to logger extensibility * re-trigger build checks * Removing test case filtering
- Loading branch information
1 parent
e48d96d
commit 8746f3f
Showing
13 changed files
with
407 additions
and
0 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
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
30 changes: 30 additions & 0 deletions
30
src/Microsoft.TestPlatform.ObjectModel/Client/Events/DiscoveryStartEventArgs.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,30 @@ | ||
// 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.Diagnostics; | ||
|
||
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; | ||
|
||
/// <summary> | ||
/// Event arguments used when test discovery starts | ||
/// </summary> | ||
public class DiscoveryStartEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Constructor for creating event args object | ||
/// </summary> | ||
/// <param name="discoveryCriteria"> Discovery criteria to be used for test discovery. </param> | ||
public DiscoveryStartEventArgs(DiscoveryCriteria discoveryCriteria) | ||
{ | ||
DiscoveryCriteria = discoveryCriteria; | ||
} | ||
|
||
/// <summary> | ||
/// Discovery criteria to be used for test discovery | ||
/// </summary> | ||
public DiscoveryCriteria DiscoveryCriteria { get; private set; } | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Microsoft.TestPlatform.ObjectModel/Client/Events/TestRunStartEventArgs.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,30 @@ | ||
// 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.Diagnostics; | ||
|
||
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; | ||
|
||
/// <summary> | ||
/// Event arguments used when test run starts | ||
/// </summary> | ||
public class TestRunStartEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Constructor for creating event args object | ||
/// </summary> | ||
/// <param name="testRunCriteria"> Test run criteria to be used for test run. </param> | ||
public TestRunStartEventArgs(TestRunCriteria testRunCriteria) | ||
{ | ||
TestRunCriteria = testRunCriteria; | ||
} | ||
|
||
/// <summary> | ||
/// Test run criteria to be used for test run | ||
/// </summary> | ||
public TestRunCriteria TestRunCriteria { 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
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
Oops, something went wrong.