Skip to content

xUnit v3 log arguments of failed test #3348

Answered by bradwilson
OdidoJohn asked this question in Question
Discussion options

You must be logged in to vote

I can't seem to find how to tell if the test has failed in the attribute.

TestContext.Current.TestState which returns TestResultState. It has a Result property, which returns TestResult, in addition to containing more information depending on the result (for example, you can get exception information for failed tests).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OdidoJohn
Comment options

Answer selected by OdidoJohn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants