vscode-test-explorer icon indicating copy to clipboard operation
vscode-test-explorer copied to clipboard

Class as additional tree item in the test explorer

Open Kakunas opened this issue 4 years ago • 2 comments

Unbenannt As seen in the picture. The VisualStudio have an additional tree item for a better overview. Maybe that is also possible at VisualStudio Code. In that case: Main.Safety is the Namespace the next Safety is the class name. The last element is the testcase.

Kakunas avatar Oct 21 '20 07:10 Kakunas

I think that is something that is up to individual test-adapters, because test explorer already supports it (if adapters care to use it). e.g I added support for it in Haxe's test-adapter extension.

also: hierarchical tree items might mean something different depending on which test frameworks you're using. e.g. BDD based test frameworks use describe calls to define testsuites. and they can sit in just one file or distributed over multiple files. they can even use nested describe calls. they don't use packages or module names of files containing test cases, because they are not relevant to BDD. so it has to be up to each test-adapter to add support for hierarchical tree items, because only they know what a correct representation looks like.

AlexHaxe avatar Oct 21 '20 07:10 AlexHaxe

Ok. Then the problem might be at the NXunit Test Explorer, which is based on this test explorer.

Kakunas avatar Oct 26 '20 12:10 Kakunas