question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test Explorer shows excess class name for tests with multiple TestCaseAttribute

See original GitHub issue

Look at UnitTests1.Test_3. What is that class name for? Is it bug or feature?

Test Explorer

public class UnitTests1 {

    [TestCase( 0 )]
    public void Test_1(int id) {
    }

    [Test]
    public void Test_2() {
    }

    [TestCase( 666 )]
    [TestCase( 777 )]
    public void Test_3(int id) {
    }
    //[TestCase( null )]
    //public void Test_3(string id) {
    //}

    [Test]
    public void Test_4() {
    }

    [Test]
    public void Test_5() {
    }

}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

0reactions
OsirisTerjecommented, Nov 1, 2019

I checked this now with VS 16.3.4 and adapter 3.13, and it looks right.
I also can’t detect any change with updating to 3-16.0-dev This looks like it was a bug in the Test Explorer, so I close it for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test Explorer shows excess class name for tests ...
The problem is that the NUnit tests below look different in the hierarchy in Test Explorer from VS version 16.2.0 Preview 1.0 -...
Read more >
Get VS Test Explorer to show only test name not full type ...
For me, normal tests are showing the method name, but tests with multiple TestCase() are showing the fully qualified namespace and name. This ......
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
Test Explorer can run tests from multiple test projects in a solution and from test classes that are part of the production code...
Read more >
Adapter V3 Release Notes
NUnit3 Test Adapter for Visual Studio - Version 3.17.0 - July 11, 2020 ... 644 Test Explorer shows excess class name for tests...
Read more >
Getting Started with Unit Testing in Visual Studio 2022 - nUnit
Hey Programmers, In this episode, I am showing how you can get started with Unit Testing for your .NET projects. Unit Testing is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found