Thanks a lot for your work! #31
Replies: 5 comments 3 replies
-
Hello, I have one new observation. I have following demo tests:
When I start tests, in Test Results window I see console.log outputs like this: But when I click on result tree, where I expected that I will see the console.log for 1 test only, the result is: Is this expected behavior? Is there any way how to write console.log to this test-result also per-test? Thanks |
Beta Was this translation helpful? Give feedback.
-
Few more:
|
Beta Was this translation helpful? Give feedback.
-
Few more issues: Running more complex test on multiple files lead to issue with mocha: the same issue occurs when I run generated mocha command manually from command line. It seems that mocha doesn't support passing multiple --file commands |
Beta Was this translation helpful? Give feedback.
-
Hey there 👋 Nice to see already some adoption of the plugin. Here some feedback to your posts:
I added #32 to track this. Will investigate and fix it soon.
Can you setup an example repository and double check this problem? If its reproducible like that would be great to enter a bug via https://github.com/CoderLine/mocha-vscode/issues/new/choose with all the details.
VS Code has an own built-in mechanism for that. We attach any captured outputs during the test execution to the individual tests (like the outcome) and the output can be checked when selecting the test in the bottom panel. Its a bit different to the "older" plugin but how Microsoft has designed it. If something is not working fully correct there let me know, could be that there are some bugs in capturing the output. For any bugs you encounter please enter them via https://github.com/CoderLine/mocha-vscode/issues/new/choose ot have all information collected and trackable.
Skipped tests are indeed a bit tricky. Unfortunately Mocha doesn't report them at all in the execution so that might lead to errors. I added #33
Can you file a bug for that with an example repo? We already have quite some tests for checking the test combinations and most variants are fine. This might be a missing case I have to narrow down precisely. https://github.com/CoderLine/mocha-vscode/blob/main/src/test/integration/overlapping-tests.test.ts |
Beta Was this translation helpful? Give feedback.
-
Hello, thank you for detailed reply. I will try to create sample repositories later, but I'm not sure I will be able to find the correct combination. I tried a lot of things to make all things work and didn't save the non-working ones. Also I still testing it on our production repo, so I have to create some complete new repo. But I will try it to help you. Regarding bugs, I will create them there. Originally I didn't wanted to spam the bug tracker with issues in case you already know about that or when it should be caused by some of my own wrong configs. Regarding skipping tests, I'm not sure how, but original Mocha Test explorer is able to do that even on very large projects, Unfortunately I'm originally c++ dev and NodeJS is still pretty new for me, so I'm still little lost in these advanced configurations. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello,
I want to thank you very much for your work on this extension. Till now I used outdated mocha explorer, which doesn't work with node 20+.
Although I found few minor glitches in your plugin, I have to say it's very pleasant to work with it in comparison to mentioned explorer, where configuration was always pain.
My observations during first few hours of configuration and migration to the project:
Few glitches I found:
checkJs
: false #23) and everything started workingFew ideas how to improve it:
And that's all for now. I will post more observations as I will continue with migration process.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions