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

Missing output with failed test stack traces for Assert.Multiple #990

Closed
gps7 opened this issue Jul 4, 2022 · 2 comments
Closed

Missing output with failed test stack traces for Assert.Multiple #990

gps7 opened this issue Jul 4, 2022 · 2 comments

Comments

@gps7
Copy link

gps7 commented Jul 4, 2022

Hi,
I am missing test output with stack traces for failed tests if Assert.Multiple is used. For running below example test fails in VS2022 (Test Explorer) but output not showing all required information about failures inside of Multiple assert scope but only single stack trace to the test itself:

[Test]
public void AssertMultiple()
{
Assert.Multiple(() =>
{
ValidateInteger();
Assert.That("a", Is.EqualTo("b"), "String");
ValidateInteger();
});
}

private void ValidateInteger() => Assert.That(1, Is.EqualTo(2), "Integer");

VS2022-assert-multiple_failure_message

I've expect to see not single stack trace but 3 stack traces for 3 failures in single Assert.Multiple request which leads to failed assert.

This is a fallow up issue after creating issue #4129 nunit/nunit#4129 at Nunit and issue #1192 nunit/nunit-console#1192 at Nunit-Console and issue #907 TestCentric/testcentric-gui#907 at Test-centric. Please refer to the lined items for more details if needed.

@OsirisTerje OsirisTerje added this to the 4.3 milestone Jul 11, 2022
@OsirisTerje
Copy link
Member

OsirisTerje commented Jul 11, 2022

@gps7 Fixed.

See attached nupkg
NUnit3TestAdapter.4.3.0-alpha-107.zip

@gps7
Copy link
Author

gps7 commented Jul 12, 2022

Great, works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants