hbenl / vscode-mocha-test-adapter

Mocha Test Adapter for the VS Code Test Explorer
MIT License
91 stars 31 forks source link

Couldn't load options using mocha: child process exited with code 9 and signal null #225

Open dhowe opened 2 years ago

dhowe commented 2 years ago

Trying to add the extension to a project (even an empty project with just one test), and I get the following error:

[Error: Couldn't load options using mocha: child process exited with code 9 and signal null
    at ChildProcess.<anonymous> (/Users/dhowe/.vscode/extensions/hbenl.vscode-mocha-test-adapter-2.14.1/out/optsReader.js:89:32)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Socket.<anonymous> (node:internal/child_process:451:11)
    at Socket.emit (node:events:526:28)
    at Pipe.<anonymous> (node:net:687:12)]
ChuckEQX commented 1 month ago

I get the same thing. Have have not seen a working sample of this adapter. Mocha runs fine from CLI: npm test

But when hit the "Refresh Tests" it shows "Test discovery failed" and opens this: ` The worker process finished with code 1 and signal null

Stacktrace: at x.syncTopLevel (c:\Users\chuck.vscode\extensions\ms-vscode.test-adapter-converter-0.2.0\out\extension.js:5:3) at gh.value (c:\Users\chuck.vscode\extensions\ms-vscode.test-adapter-converter-0.2.0\out\extension.js:2:4519) at T.B (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:732) at T.fire (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:950) at gh.value (c:\Users\chuck.vscode\extensions\hbenl.vscode-test-explorer-2.22.1\out\hub\testHub.js:53:43) at T.B (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:732) at T.fire (file:///c:/Users/chuck/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:29:950) at ChildProcess. (c:\Users\chuck.vscode\extensions\hbenl.vscode-mocha-test-adapter-2.14.1\out\core.js:121:51) at ChildProcess.emit (node:events:519:28) at ChildProcess._handle.onexit (node:internal/child_process:294:12) `