Skip to content

Commit

Permalink
feat: Update test project configurations for improved xUnit runner se…
Browse files Browse the repository at this point in the history
…ttings

Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com>
  • Loading branch information
askpt committed Feb 26, 2025
1 parent e8b0bc2 commit 1346744
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build/Common.tests.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
<ItemGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
<Content Include="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenFeature.sln'))\build\xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
5 changes: 3 additions & 2 deletions build/xunit.runner.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"maxParallelThreads": 1,
"parallelizeTestCollections": false
}
"parallelizeTestCollections": false,
"parallelizeAssembly": false
}
5 changes: 0 additions & 5 deletions test/OpenFeature.E2ETests/OpenFeature.E2ETests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,4 @@
<Copy SourceFiles="@(GherkinFiles)" DestinationFolder="Features/"/>
</Target>

<ItemGroup>
<None Update="xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
4 changes: 0 additions & 4 deletions test/OpenFeature.E2ETests/xunit.runner.json

This file was deleted.

0 comments on commit 1346744

Please sign in to comment.