Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] playground tests - show live output from the tests #6564

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/Aspire.EndToEnd.Tests/.runsettings
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<xunit>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually working for you? My understanding was that these are case sensitive (because thanks XML), and these should be xUnit (with the capital U). https://xunit.net/docs/runsettings

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thank you. I will fix that.

<ShowLiveOutput>true</ShowLiveOutput>
</xunit>
<RunConfiguration>
<!-- Timeout in ms, 15 minutes -->
<TestSessionTimeout>900000</TestSessionTimeout>
Expand Down
3 changes: 3 additions & 0 deletions tests/Aspire.Playground.Tests/.runsettings
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<xunit>
<ShowLiveOutput>true</ShowLiveOutput>
</xunit>
<RunConfiguration>
<!-- Timeout in ms, 20 minutes -->
<TestSessionTimeout>1200000</TestSessionTimeout>
Expand Down
3 changes: 3 additions & 0 deletions tests/Aspire.Workload.Tests/.runsettings
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<xunit>
<ShowLiveOutput>true</ShowLiveOutput>
</xunit>
<RunConfiguration>
<!-- Timeout in ms, 20 minutes -->
<TestSessionTimeout>1200000</TestSessionTimeout>
Expand Down
2 changes: 1 addition & 1 deletion tests/helix/send-to-helix-buildonhelixtests.targets
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<_TestBlameArguments Include="--blame-crash-dump-type full" />

<!-- Using `dotnet test` for the project directly here -->
<_TestRunCommandArguments Include="dotnet test -s .runsettings --results-directory $(_HelixLogsPath)" />
<_TestRunCommandArguments Include="dotnet test -s .runsettings --results-directory $(_HelixLogsPath) -v:n" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this when the .runsettings also has:

      <Logger friendlyName="console">
        <Configuration>
          <Verbosity>normal</Verbosity>
        </Configuration>
      </Logger>

?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing -v:n to dotnet test changes the verbosity of the MSBuild operations that dotnet test does, which is different than the verbosity of the console logger.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need -v:n so the msbuild logger shows the live output.

<_TestRunCommandArguments Include="@(_TestBlameArguments, ' ')" />
</ItemGroup>

Expand Down
Loading