-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to run extension tests while VS Code is running #57
Comments
It's not possible. I suggest you either use https://code.visualstudio.com/insiders/ or use the command from CLI. |
So it is possible if I use the insiders edition to run the tests while the regular edition is running, that's great!
Any idea why this could be happening? If I run the |
Exactly, you can use Insiders version and run tests against stable as well (that's my setup). When I install Mocha Test Explorer I see nothing on the sidebar for helloworld-test-sample. Can you push that to a repo so I can repro? Maybe it's an issue for the extension instead of for VS Code. |
You need to add the following settings to the project:
Then you can open the output panel called "Mocha Explorer Log", click Reload in the Test Explorer and you will see the error messages in the output panel. With the settings above, the extension will run
I hope so, then I could fix this myself. But I have no idea why I get this error and why I only get it if the child process is started from the extension - when I try to run Thanks for looking into this! |
I can't repro on macOS. The issue seems to apply only to Linux. @bpasero @deepak1556 Seems to be caused by Electron 6 change: |
@octref |
This happens not just on Linux: on Windows I get the exact same errors, including the error "bad option: --no-sandbox". |
It looks like the error on MacOS occurs because |
I've created a little sample with which it is easy to reproduce the issue: https://github.com/hbenl/vscode-test-issue-57 |
FYI: After playing with that sample for a while I found out how I can make it work: I need to use
|
I have found that, with |
I would like to be able to run extension tests (that use
vscode-test
) in the Mocha Test Explorer (using a custom "launcher script").However, when I try to run the tests from this extension, I get the error message "Running extension tests from the command line is currently only supported if no other instance of Code is running.".
Please make this possible, it would be much more convenient to be able to run extension tests in the Test Explorer.
The text was updated successfully, but these errors were encountered: