Comes from this discussion: #22125 (reply in thread).
The issue is that in multi-root workspace where the "--rootdir", "${workspaceFolder}/tests" arg exists or the "python.testing.cwd": "${workspaceFolder}/tests", exists then the root is not the root of the multiroot workspace and therefore the root node on the test explorer is the defined rootdir instead of the root of the workspace. This leads to multiple workspace where it is has a tests folder per workspace to then just be displayed as such:
the desired test explorer view would instead be:
Comes from this discussion: #22125 (reply in thread).
The issue is that in multi-root workspace where the
"--rootdir", "${workspaceFolder}/tests"arg exists or the"python.testing.cwd": "${workspaceFolder}/tests",exists then the root is not the root of the multiroot workspace and therefore the root node on the test explorer is the defined rootdir instead of the root of the workspace. This leads to multiple workspace where it is has atestsfolder per workspace to then just be displayed as such:the desired test explorer view would instead be: