nunit3-vs-adapter icon indicating copy to clipboard operation
nunit3-vs-adapter copied to clipboard

TestCaseAttribute Attribute value altering Test Explorer grouping behaviour

Open Xaiden opened this issue 6 years ago • 2 comments

NUnit test Adapter: 3.13.0.0 NUnit Nuget Package: 3.12.0 Visual Studio Professional 2019 - 16.2.3 (Replication on 2017)

When I create the following Unit tests and attempt to view them in VS Test Explorer I would expect them both to be grouped under the UnitTest class:

image

but any unit test which contains the characters ). within a TestCaseAttribute Argument is displayed outside of the expected class - as a class of it own:

image

Following grouping values were used within Test Explorer:

image

        [TestCaseAttribute("TestAttribute).")]
        public virtual void NUnitTestTwo(string value)
        {

        }

Xaiden avatar Aug 30 '19 14:08 Xaiden

@Xaiden Thanks for the complete description. I've moved the issue to the adapter project, as this is about how the tests are presented in VS. The issue sounds closely related to #622.

mikkelbu avatar Aug 30 '19 19:08 mikkelbu

I believe this is the same underlying issues as #622 and is fixed by PR https://github.com/nunit/nunit3-vs-adapter/pull/668

johnmwright avatar Oct 28 '19 20:10 johnmwright