mocha-sidebar
mocha-sidebar copied to clipboard
Cannot run mocha-sidebar with multifolder workspace setup
Description
When i run a workspace in vscode, using shared files, server files and client files, the sidebar plugin does not detect the tests. I'm trying to run tests only for shared in this case. The sidebar plugin works fine if i open only that folder.
Steps to Reproduce
Expected Results
Tests should be displayed an run
Actual Results
No tests are detected
Settings file
"mocha.files.glob": "src/**/*spec.ts",
"mocha.options": {
"compilers": "ts:ts-node/register"
},
"mocha.requires": [
"ts-node/register"
],
"mocha.logVerbose": true,
"mocha.showInExplorer": true
i've also tried with absolute path ,and using mocha.subdirectory pointing to the absolute path to the shared folder.
Versions
- VScode: v1.23.1
- Mocha SideBar: v0.19.0
- Node Version: v10.0.0
OS version
- [ ] Linux
- [ ] Mac
- [x] Windows
I have similar issue. I have files calles XyxTests.js
and I have following user settings:
"mocha.files.glob": "**/*Tests.js",
And it cannot detects tests in side bar. Please suggest if there is any resolution.
We need to add support for working with workspace. This is not implemented yet
@emilekberg have you tried to put the "shared" folder at top under "folders"-array in your workspace-file?
@lostfields that actually seems to work. Makes sense in a way, thank you :) would be good in the future to make sure it can run on every workspace, since i will add tests in the other folders in the future.
@emilekberg np, had the same issue when I started to use workspace as a solution-file (coming from VS). I would really like to be able to use variables like ${workspaceFolder:<foldername>}
in paths as well as multiple mocha.files.glob[]
+1 Bump. I use Test Explorer every day because I work with microservices, and not being able to use Workspaces puts this add-on in the "disabled" pile.
+1 bump
Is there any extension that handles workspaces?