1

Resolved

Data driven tests showing long, not short result, in VS Test runner

description

Discovered in 99.1. Name display set to short in VS xunit options.

Used to show Capture2.jpg, now shows long Capture.jpg

Update: Sorry Brad, installed runner 99.2 and still seem to get long names in VS Test Explorer output:
    [Theory]
    [InlineData(20)]
    public void OneToTen(int number)
    {
        Assert.True(true);
    }
results in:


"Test Passed - ClassLibrary1.Class1.OneToTen(number: 20)"

rather than the expected:

"Test Passed - OneToTen(number: 20)"

NuGet packages installed: xUnit.net 1.9.2, xUnit.net Extensions 1.9.2

Seems the same in VS 2012 (with update 4 applied) & 2013. Also tried uninstalled runner/nugets and re-installing.

file attachments

comments

BradWilson wrote Dec 7, 2013 at 9:38 PM

Fixed in change set 9514c8c20f7229a49e5a73bf532e9beed0470ecc

BradWilson wrote Dec 7, 2013 at 11:01 PM

Shipped in 0.99.2.

** Closed by BradWilson 12/07/2013 4:01PM

BradWilson wrote Dec 9, 2013 at 4:13 AM

Sorry Brad, installed runner 99.2 and still seem to get long names in VS Test Explorer output
Did you ensure that the new setting inside of Tools > Options > xUnit.net was set to short names? I cannot reproduce this now with 0.99.2 with the correct settings.

jason_r wrote Dec 9, 2013 at 5:34 AM

Hi Brad - yep Short - see xsettings.png

BradWilson wrote Dec 10, 2013 at 4:23 AM

Ah, okay, I was confused on exactly what you were talking about, but now I see it's the results, not the discovered tests. I should be able to fix this for 0.99.3.

jason_r wrote Dec 10, 2013 at 5:24 AM

Awesome :)

BradWilson wrote Mar 8, 2014 at 8:44 PM

Fixed in commit 031e649.