maty21 / mocha-sidebar

Mocha side bar viewer that allows you to run Mocha tests from side bar menu and view results can run each level hierarchy from all tests to a single test(and each describer of course)
MIT License
191 stars 61 forks source link

permission denied for nyc.js #167

Open amitm02 opened 5 years ago

amitm02 commented 5 years ago

I get premiss denied (i'm on OSX)

coverage running the following command /Users/XXX/.vscode/extensions/maty.vscode-mocha-sidebar-0.20.22/node_modules/nyc/bin/nyc.js --all --reporter=html --reporter=text --reporter=lcov /Users/XXX/.vscode/extensions/maty.vscode-mocha-sidebar-0.20.22/node_modules/mocha/bin/mocha --require ts-node/register */.ts --exit coverage running the following command /Users/XXX/.vscode/extensions/maty.vscode-mocha-sidebar-0.20.22/node_modules/nyc/bin/nyc.js --all --reporter=html --reporter=text --reporter=lcov /Users/XXX/.vscode/extensions/maty.vscode-mocha-sidebar-0.20.22/node_modules/mocha/bin/mocha --require ts-node/register */.ts --exit sh: /Users/XXX/.vscode/extensions/maty.vscode-mocha-sidebar-0.20.22/node_modules/nyc/bin/nyc.js: Permission denied

joseym commented 5 years ago

I, too, am running into this issue.

joseym commented 5 years ago

I was able to get around this by manually changing permissions of the nyc and mocha binaries from within the extension.

cd ~/.vscode-insiders/extensions/maty.vscode-mocha-sidebar-0.20.22/
chmod +x node_modules/nyc/bin/nyc.js node_modules/nyc/bin/wrap.js node_modules/mocha/bin/mocha
maty21 commented 5 years ago

added your workaround to the README I couldn't reproduce it on my pc maybe it related to macOS so if you have more information it could be really helpful