thomhurst / TUnit

A modern, fast and flexible .NET testing framework
MIT License
2.32k stars 37 forks source link

Nested Classes don't include the containing class in the test output explorer #830

Closed vbreuss closed 1 month ago

vbreuss commented 1 month ago

I often want to group tests in a nested class and would expect the class name in the test explorer to reflect the full name, e.g.

public class OuterTests
{
  public class InnerTests
  {
    [Test]
    public async Task SomeTest()
    {
      // Tests something
    }
  }
}

should be displayed as OuterTests+InnerTests.SomeTest, but in the test explorer the OuterTest class is ignored: image