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

Assert.Multiple produces new tests in the report if inner assertions fail #631

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

nvborisenko
Copy link
Contributor

This PR fixes #630 (Assert.Multiple produces new tests in the report if inner assertions fail).

Changes:

  • Reworked parsingtest-case xml node to not consider assertions node
  • Don't set ErrorMessage property for passed tests


if (testcaseResult!=null && testcaseResult.Outcome == TestOutcome.Failed && results.Any() && results.All(o => o.Outcome != TestOutcome.Failed))
results.First().Outcome = TestOutcome.Failed;
results.Add(testcaseResult);
Copy link
Member

Choose a reason for hiding this comment

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

Here you might add null. What is the effect of that?

@OsirisTerje OsirisTerje merged commit 9cc7cef into nunit:master Jul 10, 2019
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.

Assert.Multiple produces new tests in the report if inner assertions fail
2 participants