Skip to content

Commit

Permalink
UITest: Migrate to Xunit v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Dec 29, 2024
1 parent ddd07d8 commit 6f334a1
Show file tree
Hide file tree
Showing 17 changed files with 9 additions and 18 deletions.
3 changes: 2 additions & 1 deletion src/Samples.UITest/BookLibrary.Test/BookLibrary.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<RootNamespace>UITest.BookLibrary</RootNamespace>
</PropertyGroup>
Expand All @@ -8,7 +9,7 @@
<PackageReference Include="GitHubActionsTestLogger" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.v3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using FlaUI.Core.AutomationElements;
using UITest.BookLibrary.Views;
using Xunit.Abstractions;
using Xunit;
using UITest.SystemViews;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using UITest.BookLibrary.Views;
using UITest.SystemViews;
using Xunit;
using Xunit.Abstractions;

namespace UITest.BookLibrary.Tests;

Expand Down
1 change: 0 additions & 1 deletion src/Samples.UITest/BookLibrary.Test/Tests/GeneralTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using FlaUI.Core.Capturing;
using UITest.SystemViews;
using Xunit;
using Xunit.Abstractions;

namespace UITest.BookLibrary.Tests;

Expand Down
1 change: 0 additions & 1 deletion src/Samples.UITest/BookLibrary.Test/Tests/ReportingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using FlaUI.Core.Tools;
using UITest.SystemViews;
using Xunit;
using Xunit.Abstractions;

namespace UITest.BookLibrary.Tests;

Expand Down
1 change: 0 additions & 1 deletion src/Samples.UITest/BookLibrary.Test/UITest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Diagnostics;
using UITest.BookLibrary.Views;
using Xunit;
using Xunit.Abstractions;

[assembly: CollectionBehavior(DisableTestParallelization = true)]

Expand Down
3 changes: 1 addition & 2 deletions src/Samples.UITest/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<PackageVersion Include="FlaUI.UIA3" Version="4.0.0" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.abstractions" Version="2.0.3" />
<PackageVersion Include="xunit.v3" Version="1.0.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<RootNamespace>UITest.InformationManager</RootNamespace>
</PropertyGroup>
Expand All @@ -8,7 +9,7 @@
<PackageReference Include="GitHubActionsTestLogger" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.v3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using FlaUI.Core.AutomationElements;
using Xunit.Abstractions;
using Xunit;
using UITest.InformationManager.Views;
using FlaUI.Core.Definitions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using UITest.InformationManager.Views;
using UITest.SystemViews;
using Xunit;
using Xunit.Abstractions;

namespace UITest.InformationManager.Tests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using FlaUI.Core.Capturing;
using UITest.SystemViews;
using Xunit;
using Xunit.Abstractions;

namespace UITest.InformationManager.Tests;

Expand Down
1 change: 0 additions & 1 deletion src/Samples.UITest/InformationManager.Test/UITest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Diagnostics;
using UITest.InformationManager.Views;
using Xunit;
using Xunit.Abstractions;

[assembly: CollectionBehavior(DisableTestParallelization = true)]

Expand Down
2 changes: 1 addition & 1 deletion src/Samples.UITest/UITest.Core/UITest.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

<ItemGroup>
<PackageReference Include="FlaUI.UIA3" />
<PackageReference Include="xunit.abstractions" />
<PackageReference Include="xunit.v3" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Samples.UITest/UITest.Core/UITestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Xunit.Abstractions;
using Xunit;

namespace UITest;

Expand Down
1 change: 0 additions & 1 deletion src/Samples.UITest/Writer.Test/Tests/WriterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using UITest.SystemViews;
using UITest.Writer.Views;
using Xunit;
using Xunit.Abstractions;

namespace UITest.Writer;

Expand Down
1 change: 0 additions & 1 deletion src/Samples.UITest/Writer.Test/UITest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Diagnostics;
using UITest.Writer.Views;
using Xunit;
using Xunit.Abstractions;

[assembly: CollectionBehavior(DisableTestParallelization = true)]

Expand Down
3 changes: 2 additions & 1 deletion src/Samples.UITest/Writer.Test/Writer.Test.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<RootNamespace>UITest.Writer</RootNamespace>
</PropertyGroup>
Expand All @@ -8,7 +9,7 @@
<PackageReference Include="GitHubActionsTestLogger" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.v3" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 6f334a1

Please sign in to comment.