mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Merged PR 4392: Fix xunit tests and update package references
This commit is contained in:
committed by
Travis Plunk
parent
a85924e183
commit
3bec8d350b
+5
-2
@@ -1426,8 +1426,11 @@ function Start-PSxUnit {
|
||||
|
||||
# '-fxversion' workaround required due to https://github.com/dotnet/cli/issues/7901#issuecomment-343323674
|
||||
# Run sequential tests first, and then run the tests that can execute in parallel
|
||||
dotnet xunit -fxversion 2.0.0 -configuration $Options.configuration -xml $SequentialTestResultsFile -namespace "PSTests.Sequential" -parallel none
|
||||
dotnet xunit -fxversion 2.0.0 -configuration $Options.configuration -xml $ParallelTestResultsFile -namespace "PSTests.Parallel" -nobuild
|
||||
log "Running sequential tests"
|
||||
dotnet xunit -fxversion 2.0.7 -configuration $Options.configuration -xml $SequentialTestResultsFile -namespace "PSTests.Sequential" -parallel none
|
||||
|
||||
log "Running parallel tests"
|
||||
dotnet xunit -fxversion 2.0.7 -configuration $Options.configuration -xml $ParallelTestResultsFile -namespace "PSTests.Parallel" -nobuild
|
||||
}
|
||||
finally {
|
||||
Pop-Location
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.5.1" />
|
||||
<PackageReference Include="System.IO.Packaging" Version="4.5.0" />
|
||||
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="4.5.0" />
|
||||
<PackageReference Include="System.ServiceModel.Duplex" Version="4.5.*" />
|
||||
<PackageReference Include="System.ServiceModel.Http" Version="4.5.*" />
|
||||
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.5.*" />
|
||||
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.*" />
|
||||
<PackageReference Include="System.ServiceModel.Security" Version="4.5.*" />
|
||||
<PackageReference Include="System.ServiceModel.Duplex" Version="4.5.3" />
|
||||
<PackageReference Include="System.ServiceModel.Http" Version="4.5.3" />
|
||||
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.5.3" />
|
||||
<PackageReference Include="System.ServiceModel.Primitives" Version="4.5.3" />
|
||||
<PackageReference Include="System.ServiceModel.Security" Version="4.5.3" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="4.5.0" />
|
||||
<PackageReference Include="System.Threading.AccessControl" Version="4.5.0" />
|
||||
<PackageReference Include="System.Private.ServiceModel" Version="4.5.*" />
|
||||
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" />
|
||||
<PackageReference Include="Microsoft.NETCore.Windows.ApiSets" Version="1.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj"/>
|
||||
<ProjectReference Include="../../src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj"/>
|
||||
<ProjectReference Include="../../src/Microsoft.WSMan.Management/Microsoft.WSMan.Management.csproj"/>
|
||||
<ProjectReference Include="../../src/Microsoft.WSMan.Management/Microsoft.WSMan.Management.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="xunit" Version="2.3.1" />
|
||||
<!-- DotNetCliToolReference element specifies the CLI tool that the user wants to restore in the context of the project. -->
|
||||
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
|
||||
<DotNetCliToolReference Include="dotnet-xunit" Version="2.4.0-beta.1.build3958" />
|
||||
<PackageReference Include="Xunit.SkippableFact" Version="1.3.6" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -15,10 +15,11 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="xunit" Version="2.3.1" />
|
||||
<PackageReference Include="xunit" Version="2.4.0" />
|
||||
<!-- DotNetCliToolReference element specifies the CLI tool that the user wants to restore in the context of the project. -->
|
||||
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
|
||||
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.0.2" />
|
||||
<!-- The version of Microsoft.PowerShell.SDK should be the version we are releasing, so the tests use the correct SDK before publishing to NuGet.org -->
|
||||
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.0.4" />
|
||||
<PackageReference Include="Xunit.SkippableFact" Version="1.3.6" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user