-
Notifications
You must be signed in to change notification settings - Fork 32
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
VS Code extension tests using vscode-test do not load #157
Comments
Does the hello-world-testsample work for you? I.e. do you see the test from that repo in Mocha Test Explorer? |
No, the logs and screenshot above are using the hello-world-testsample: since I was not able make it work with my extension I wanted to check with your sample (hoping it would have worked) to then hunt for differences between the two, but I cannot make it work with your sample either.... |
Worth mentioning: my VSCode takes a minute to load (I have way too many extensions installed... 🤔), since I could not have it start without extensions ( |
Ah, that could explain it: the |
That helped a bit, thanks, at least I can go past that error now. It is still failing though, with some error coming from other extensions. On a different topic (I can open a separate issue if you prefer), I do not want other extensions loaded anyway when I'm testing mine, I am trying with: "mochaExplorer.env": {
"VSCODE_VERSION": "insiders",
"ELECTRON_RUN_AS_NODE": null,
"VSCODE_LAUNCH_ARGS": "--disable-extensions"
}, But I am getting:
This is still with your hello-world sample. |
Interesting: when i refresh the test view, I see the spawned Insiders window (because I'm starting from Stable). Then Insiders hangs (because of an unrelated problem with one of the other extensions), when I kill it, the Test Explorer view shows the test as expected (but not till I kill Insiders): So I am left with the error using |
I also had this problem, and only managed to solve it by adding the I'm new to this. Is there any harm in having both in my project? |
I an trying to use Mocha Test Explorer to run the integration tests for my VSCode extension, I am aware of limitations running tests from the command line but I am also trying to follow other docs and suggestions here:
I have these settings in my workspace (I am using VSCode Stable, so
CODE_VERSION
here isInsiders
):I tried a number of different settings, but unfortunately Mocha Test Explorer never properly shows the tests.
Running tests, according to
Mocha Explorer log
, the test file is found (this is just a sample extension):Anyway Test Explorer always shows this:
![image](https://user-images.githubusercontent.com/5784415/119281580-12ad7b80-bbeb-11eb-9b59-a8588a7cc19b.png)
What am I missing? I can run tests launching the proper Task in VSCode, I was hoping to also have a visual representation in Test Explorer as for other languages (Go, .NET, Python etc...): is it possible?
Thanks
The text was updated successfully, but these errors were encountered: