hbenl / vscode-jasmine-test-adapter

Jasmine Test Adapter for the VS Code Test Explorer
MIT License
20 stars 20 forks source link

Request: Option to present the folder structure in the test explorer #42

Open Neutrino-Sunset opened 3 years ago

Neutrino-Sunset commented 3 years ago

I have multiple test suites in multiple folders. The test explorer currently displays these suites as a flat list prefixed by their location. E.g.

\Folder 1\test-suite-1.spec.js \Folder 1\test-suite-2.spec.js \Folder 1\test-suite-3.spec.js \Folder 2\test-suite-4.spec.js \Folder 2\test-suite-5.spec.js

I would much prefer it if the folder was represented as a node in the tree, e.g.

\Folder 1 test-suite-1.spec.js test-suite-2.spec.js test-suite-3.spec.js \Folder 2 test-suite-4.spec.js test-suite-5.spec.js

Although the difference might seem minor in this trival example, in a project with lots of tests in lots of folders I find a flat list where every suite is prefixed by the path to be rather painful to navigate, not least because you need an extremely wide sidebar to even be able to see the test suite names since they all have their relative paths prepended.