Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #39 from CraigRichards/patch-category-tab-grouping…
Browse files Browse the repository at this point in the history
…-issue

When there is no message from the underlying failure exception e need…
  • Loading branch information
unickq authored Jun 16, 2021
2 parents 56982ac + 0f48bbc commit 0e012ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/allure-nunit/Core/AllureNUnitHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ private void StopTestCase()

AllureLifecycle.UpdateTestCase(x => x.statusDetails = new StatusDetails
{
message = TestContext.CurrentContext.Result.Message,
message = string.IsNullOrWhiteSpace(TestContext.CurrentContext.Result.Message)
? TestContext.CurrentContext.Test.Name
: TestContext.CurrentContext.Result.Message,
trace = TestContext.CurrentContext.Result.StackTrace
});

Expand Down

0 comments on commit 0e012ad

Please sign in to comment.