Skip to content

Commit 1f2da51

Browse files
committed
Skip Integration-Tests
1 parent 0abdd56 commit 1f2da51

13 files changed

+22
-4
lines changed

.github/workflows/post-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
5151

5252
- name: 🧪 Run unit tests
53-
run: dotnet test -c Release --no-build
53+
run: dotnet test -c Release --no-build --filter "Category!=Integration"
5454

5555
- name: 🌩️ SonarCloud install scanner
5656
run: dotnet tool install --global dotnet-sonarscanner

.github/workflows/pre-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
5656

5757
- name: 🧪 Run unit tests
58-
run: dotnet test -c Release --no-build
58+
run: dotnet test -c Release --no-build --filter "Category!=Integration"

test/Atc.CodingRules.AnalyzerProviders.Tests/Atc.CodingRules.AnalyzerProviders.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9+
<PackageReference Include="Atc.XUnit" Version="2.0.67" />
910
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
1011
<PackageReference Include="xunit" Version="2.4.1" />
1112
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">

test/Atc.CodingRules.AnalyzerProviders.Tests/GlobalUsings.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
global using System.Threading.Tasks;
2-
31
global using Atc.CodingRules.AnalyzerProviders.Providers;
2+
global using Atc.XUnit;
43

54
global using Microsoft.Extensions.Logging.Abstractions;
65

test/Atc.CodingRules.AnalyzerProviders.Tests/Providers/AsyncFixerProviderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
namespace Atc.CodingRules.AnalyzerProviders.Tests.Providers;
22

3+
[Trait(Traits.Category, Traits.Categories.Integration)]
4+
[Trait(Traits.Category, Traits.Categories.SkipWhenLiveUnitTesting)]
35
public class AsyncFixerProviderTests
46
{
57
[Theory]

test/Atc.CodingRules.AnalyzerProviders.Tests/Providers/AsyncifyProviderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
namespace Atc.CodingRules.AnalyzerProviders.Tests.Providers;
22

3+
[Trait(Traits.Category, Traits.Categories.Integration)]
4+
[Trait(Traits.Category, Traits.Categories.SkipWhenLiveUnitTesting)]
35
public class AsyncifyProviderTests
46
{
57
[Theory]

test/Atc.CodingRules.AnalyzerProviders.Tests/Providers/MeziantouProviderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
namespace Atc.CodingRules.AnalyzerProviders.Tests.Providers;
22

3+
[Trait(Traits.Category, Traits.Categories.Integration)]
4+
[Trait(Traits.Category, Traits.Categories.SkipWhenLiveUnitTesting)]
35
public class MeziantouProviderTests
46
{
57
[Theory]

test/Atc.CodingRules.AnalyzerProviders.Tests/Providers/MicrosoftCodeAnalysisNetAnalyzersProviderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
namespace Atc.CodingRules.AnalyzerProviders.Tests.Providers;
22

3+
[Trait(Traits.Category, Traits.Categories.Integration)]
4+
[Trait(Traits.Category, Traits.Categories.SkipWhenLiveUnitTesting)]
35
public class MicrosoftCodeAnalysisNetAnalyzersProviderTests
46
{
57
[Theory]

test/Atc.CodingRules.AnalyzerProviders.Tests/Providers/MicrosoftCompilerErrorsProviderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
namespace Atc.CodingRules.AnalyzerProviders.Tests.Providers;
22

3+
[Trait(Traits.Category, Traits.Categories.Integration)]
4+
[Trait(Traits.Category, Traits.Categories.SkipWhenLiveUnitTesting)]
35
public class MicrosoftCompilerErrorsProviderTests
46
{
57
[Theory]

test/Atc.CodingRules.AnalyzerProviders.Tests/Providers/MicrosoftCompilerErrorsProviderUndocumentedTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
namespace Atc.CodingRules.AnalyzerProviders.Tests.Providers;
22

3+
[Trait(Traits.Category, Traits.Categories.Integration)]
4+
[Trait(Traits.Category, Traits.Categories.SkipWhenLiveUnitTesting)]
35
public class MicrosoftCompilerErrorsProviderUndocumentedTests
46
{
57
[Theory]

0 commit comments

Comments
 (0)