1
Vote

Fully Qualified Name Displayed for Theories

description

I am using beta 4 of Xunit and version 0.99.8 of the xUnit.net runner to test F# code.

Unlike facts, theories are displayed with fully-qualified namespace/module names making the content of the Test Explorer difficult to read.

For example, suppose I define a test function like so
namespace A.B

module C =
    [<Theory>]
    [<InlineData(1,3,4)>]
    [<InlineData(1.0, 3.0, 4.0>]
    let testSum x y expect = Assert.Equal(expect, x + y)        
Then, the test explorer displays
A.B.C.testSum<Int32>(x:1,y:3,expect:4)
A.B.C.testSum<Double>(x:1,y:3,expect:4)
On the other hand, I would expect something like
testSum<Int32>(x:1,y:3,expect:4)
testSum<Double>(x:1,y:3,expect:4)

comments

isoquark wrote Aug 23, 2014 at 2:56 AM

I should also point out that this issue is the same issue resolved with work item 9910 TEXT. So, if it was fixed, it was no longer fixed or perhaps this is something unique to F#.

bartelink wrote Aug 23, 2014 at 9:06 AM

Showing the namespace is a switchable option (in tools|Options but it's about to move into a config file IIRC).

Also, this repo is dead - all issues are managed on GitHub now

isoquark wrote Aug 23, 2014 at 7:55 PM

Thanks for the info; unfortunately, the setting of the option value has no effect. The theory names continue to be displayed in fully-qualified form. I have submitted the issue on github: https://github.com/xunit/visualstudio.xunit/issues/17