Skip to content

Commit

Permalink
[tests] add a xunit.runner.json to get long-running tests message (#2501
Browse files Browse the repository at this point in the history
)
  • Loading branch information
radical authored Feb 28, 2024
1 parent c34c8fa commit 02b5a47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/testing/xunit.runner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
"longRunningTestSeconds": 120
}
2 changes: 2 additions & 0 deletions tests/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
<Import Project="..\Directory.Build.targets" />
<PropertyGroup>
<DeployRunSettingsFile Condition="'$(DeployRunSettingsFile)' == ''">true</DeployRunSettingsFile>
<XunitTestRunnerJson Condition="'$(XunitTestRunnerJson)' == ''">$(RepositoryEngineeringDir)testing\xunit.runner.json</XunitTestRunnerJson>

<RunTestsOnHelix Condition="'$(RunTestsOnHelix)' == ''">false</RunTestsOnHelix>
<SkipTests Condition="'$(SkipTests)' == '' and ('$(IsTestSupportProject)' == 'true' or '$(RunTestsOnHelix)' == 'true')">true</SkipTests>
</PropertyGroup>

<ItemGroup>
<None Include="$(RepositoryEngineeringDir)testing\.runsettings" CopyToOutputDirectory="PreserveNewest" Condition="'$(DeployRunSettingsFile)' == 'true'" />
<None Include="$(XunitTestRunnerJson)" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<Target Name="ZipTestArchive" AfterTargets="Build" Condition="'$(ArchiveTests)' == 'true' and '$(RunTestsOnHelix)' == 'true'">
Expand Down

0 comments on commit 02b5a47

Please sign in to comment.