Skip to content

xUnit v3 - How to display the seed in the test output ? #3320

Answered by bradwilson
kvpt asked this question in Question
Discussion options

You must be logged in to vote

The seed is printed in the headers when diagnostic messages are enabled.

When using dotnet run, there is one variable which influences how easy it is to see the seed.

  • For native xUnit.net UX, it just shows up:

  • For Microsoft Testing Platform UX, you need to pass --xunit-info to see the xUnit.net messages:

When using dotnet test, there are several variables which can influence how easy it is to see the seed.

  • For VSTest mode, with .NET SDK 9 and using Windows Terminal, it should just show up:

  • For VSTest mode, with .NET SDK 8 or older (or if you're not using Windows Terminal), it will only show up if you enable normal verbosity with the console logger with --logger "console;verbo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kvpt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants