Skip to content

Print the scenario's log entries when an acceptance test fails - #5876

Merged
ramonsmits merged 1 commit into
masterfrom
ramon/acceptance-test-dump-endpoint-logs
Sep 10, 2026
Merged

Print the scenario's log entries when an acceptance test fails#5876
ramonsmits merged 1 commit into
masterfrom
ramon/acceptance-test-dump-endpoint-logs

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

The test endpoints log only into ScenarioContext.Logs, and nothing printed those, so a failing acceptance test could not be traced past ServiceControl's own output. A recent Windows-PostgreSql failure spent a minute inside SendLocal and the receiver endpoint left no trace at all.

NServiceBusAcceptanceTest.TearDown now prints the entries on failure, timestamped and labelled by endpoint, the way NServiceBus core's acceptance tests do. ServiceControl's host logs into the same collection on top of its live output, so its lines appear twice for a failed test.

The test endpoints log only into ScenarioContext.Logs, and nothing printed
those, so a failure could not be traced past ServiceControl's own output.
The Windows-PostgreSql failure that hung in SendLocal for a minute is the
example: the receiver endpoint left no trace at all. TearDown now prints
the entries the way NServiceBus core's acceptance tests do.
@ramonsmits
ramonsmits merged commit d2e5f80 into master Sep 10, 2026
69 of 70 checks passed
@ramonsmits
ramonsmits deleted the ramon/acceptance-test-dump-endpoint-logs branch September 10, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants