зеркало из https://github.com/microsoft/BuildXL.git
Merged PR 748973: Apply XUnit patch to fix concurrency issue in XUnit's DependencyContextAssemblyCache
Apply XUnit patch to fix concurrency issue in XUnit's DependencyContextAssemblyCache. For details, see https://github.com/xunit/xunit/pull/1846 Related work items: #2111327
This commit is contained in:
Родитель
778291da22
Коммит
f81ea4fb78
|
@ -8,6 +8,11 @@ import {isDotNetCore} from "Sdk.Managed.Shared";
|
|||
|
||||
export const xunitConsolePackage = importFrom("xunit.runner.console").Contents.all;
|
||||
|
||||
// This package is published by Dotnet Arcade and contains some important fixes we need, when
|
||||
// running on .NETCoreApp 3.0, see: https://github.com/dotnet/arcade/tree/master/src/Microsoft.DotNet.XUnitConsoleRunner
|
||||
// For the issue, see: https://github.com/xunit/xunit/pull/1846
|
||||
export const xunitNetCoreConsolePackage = importFrom("Microsoft.DotNet.XUnitConsoleRunner").Contents.all;
|
||||
|
||||
/**
|
||||
* Evaluate (i.e. schedule) xUnit test runner invocation with specified arguments.
|
||||
*/
|
||||
|
|
|
@ -69,7 +69,10 @@ const additionalNetCoreRuntimeContent = isDotNetCore(qualifier.targetFramework)
|
|||
// into a self-contained deployment or treat it as a framework-dependent deployment as intended, let's do the latter
|
||||
...(getXunitConsoleRuntimeConfigNetCoreAppFiles()),
|
||||
xunitConsolePackage.getFile(r`/tools/netcoreapp2.0/xunit.runner.utility.netcoreapp10.dll`),
|
||||
xunitConsolePackage.getFile(r`/tools/netcoreapp2.0/xunit.console.dll`)
|
||||
|
||||
// Note that below we are using different console runner due to this bug https://github.com/xunit/xunit/pull/1846
|
||||
// that the xunit maintainer does not want to fix. Let's consider removing this patch when we upgrade to xunit 3.0.
|
||||
xunitNetCoreConsolePackage.getFile(r`/lib/netcoreapp2.0/xunit.console.dll`)
|
||||
]
|
||||
: [];
|
||||
|
||||
|
|
|
@ -1180,6 +1180,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Component": {
|
||||
"Type": "NuGet",
|
||||
"NuGet": {
|
||||
"Name": "Microsoft.DotNet.XUnitConsoleRunner",
|
||||
"Version": "2.5.1-beta.19270.4"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Component": {
|
||||
"Type": "NuGet",
|
||||
|
@ -4699,6 +4708,24 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Component": {
|
||||
"Type": "NuGet",
|
||||
"NuGet": {
|
||||
"Name": "xunit.runner.reporters",
|
||||
"Version": "2.5.3"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Component": {
|
||||
"Type": "NuGet",
|
||||
"NuGet": {
|
||||
"Name": "xunit.runner.utility",
|
||||
"Version": "2.5.3"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Component": {
|
||||
"Type": "NuGet",
|
||||
|
|
|
@ -234,6 +234,9 @@ config({
|
|||
{ id: "xunit.extensibility.execution", version: "2.5.3" },
|
||||
{ id: "xunit.runner.console", version: "2.5.3" },
|
||||
{ id: "xunit.runner.visualstudio", version: "2.5.3" },
|
||||
{ id: "xunit.runner.utility", version: "2.5.3" },
|
||||
{ id: "xunit.runner.reporters", version: "2.5.3" },
|
||||
{ id: "Microsoft.DotNet.XUnitConsoleRunner", version: "2.5.1-beta.19270.4" },
|
||||
|
||||
// microsoft test platform
|
||||
{ id: "Microsoft.TestPlatform.TestHost", version: "16.4.0"},
|
||||
|
|
Загрузка…
Ссылка в новой задаче