-
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.
* Upload on session end when HangDump started In rare cases where we have a crashing tests and short hang timeout, we get into situation where hang dumper started dumping, but then session ends because of the crash, and dumps are not uploaded because the session end is only uploading when there is crash dump enabled. After this change we look for any dump in any case and upload all the dumps that hang dumper was able to create. * Fix procdump condition * Move TestAssets.sln * Blame tests * Add acceptance tests for dump collecting * Fix build error * Install 3.1.0 runtime * Update to recent version of .NET5.0-rc1 that has the appropriate dumping code in runtime * Correct versions everywhere * Fix timeout
- Loading branch information
Showing
24 changed files
with
806 additions
and
60 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
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
46 changes: 46 additions & 0 deletions
46
test/Microsoft.TestPlatform.AcceptanceTests/Extension/NetCoreRunner.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,46 @@ | ||
// 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.AcceptanceTests | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Reflection; | ||
using TestUtilities; | ||
using VisualStudio.TestTools.UnitTesting; | ||
|
||
/// <summary> | ||
/// Runs tests using the dotnet vstest.console.dll built against .NET Core 2.1. | ||
/// Provide a list of target frameworks to run the tests from given as a ';' separated list, or using a constant containing that range such as | ||
/// AcceptanceTestBase.NETFX452_NET50 = "net452;net472;net48;netcoreapp2.1;netcoreapp3.1;net5.0" to determine which target framework of the project | ||
/// to test. The target project must list those TFMs in the TargetFrameworks property in csproj. | ||
/// </summary> | ||
public class NetCoreRunner : Attribute, ITestDataSource | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="NetCoreTargetFrameworkDataSource"/> class. | ||
/// </summary> | ||
/// <param name="targetFrameworks">To run tests with desktop runner(vstest.console.exe), use AcceptanceTestBase.Net452TargetFramework or alike values.</param> | ||
public NetCoreRunner(string targetFrameworks = AcceptanceTestBase.NETFX452_NET50) | ||
{ | ||
foreach (var fmw in targetFrameworks.Split(';')) | ||
{ | ||
this.dataRows.Add(new object[] { new RunnerInfo(IntegrationTestBase.CoreRunnerFramework, fmw) }); | ||
} | ||
|
||
} | ||
|
||
private List<object[]> dataRows = new List<object[]>(); | ||
|
||
public IEnumerable<object[]> GetData(MethodInfo methodInfo) | ||
{ | ||
return this.dataRows; | ||
} | ||
|
||
public string GetDisplayName(MethodInfo methodInfo, object[] data) | ||
{ | ||
return string.Format(CultureInfo.CurrentCulture, "{0} ({1})", methodInfo.Name, string.Join(",", data)); | ||
} | ||
} | ||
} |
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.