Skip to content

Commit f12ef96

Browse files
authored
xunit runner
1 parent 32c92fd commit f12ef96

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
using System;
22
using Xunit;
33

4-
public sealed class IgnoreOnGithubFact : FactAttribute
4+
namespace QAToolKit.Engine.Bombardier.Test
55
{
6-
public IgnoreOnGithubFact()
6+
public class IgnoreOnGithubFact : FactAttribute
77
{
8-
if (IsGitHubAction())
8+
public IgnoreOnGithubFact()
99
{
10-
Skip = "Ignore the test when run in Github agent.";
10+
if (IsGitHubAction())
11+
{
12+
Skip = "Ignore the test when run in Github agent.";
13+
}
1114
}
12-
}
1315

14-
private static bool IsGitHubAction()
15-
=> Environment.GetEnvironmentVariable("GITHUB_ACTION") != null;
16+
private static bool IsGitHubAction()
17+
=> Environment.GetEnvironmentVariable("GITHUB_ACTION") != null;
18+
}
1619
}

src/QAToolKit.Engine.Bombardier.Test/QAToolKit.Engine.Bombardier.Test.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@
5353
</None>
5454
</ItemGroup>
5555

56+
<ItemGroup>
57+
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
58+
</ItemGroup>
59+
5660
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
3+
"maxParallelThreads": 1,
4+
"parallelizeAssembly": false,
5+
"parallelizeTestCollections": false
6+
}

src/QAToolKit.Engine.Bombardier/QAToolKit.Engine.Bombardier.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageProjectUrl>https://github.com/qatoolkit/qatoolkit-engine-bombardier-net</PackageProjectUrl>
2020
<PackageIcon>qatoolkit-64x64.png</PackageIcon>
2121
<RepositoryUrl>https://github.com/qatoolkit/qatoolkit-engine-bombardier-net</RepositoryUrl>
22-
<PackageTags>qatoolkit-core-net;.net;c#;f#;load-tests;bombardier;dotnet;netstandard;net5</PackageTags>
22+
<PackageTags>qatoolkit-engine-bombardier-net;.net;c#;f#;load-tests;bombardier;dotnet;netstandard;net5</PackageTags>
2323
<Configurations>Debug;Release;Debug With Project References</Configurations>
2424
</PropertyGroup>
2525

0 commit comments

Comments
 (0)