Build/Test Issues

xUnit display weirdness.

Started by distantcam on 6,423 views

For this xUnit test:

[Fact(DisplayName = "Bar")]
public void Foo()
{
    Assert.True(false);
}


I would expect the test to have the name Bar in NCrunch, but instead it displays the name Foo.

Also for a Theory would it be possible to display each result seperately?

Edited

Hi, thanks for posting!

Right now NCrunch is utilising Xunit via Gallio, which somewhat limits the integration options in this area. There are long term plans to move away from this, in which case features such as these will be more feasible to develop.

Something you can try (which may make a difference in the behaviour you experience here) is to change the 'Framework utilisation type for Gallio/Xunit' under your NCrunch solution configuration.

Post a reply

Log in to reply.