-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: Add code coverage support #1234
feat: Add code coverage support #1234
Conversation
3a3493c
to
4bbb91a
Compare
@djelinek I think this PR is now ready for review. Let me know if you have further comments. Thanks! |
@djelinek Though it is not directly related to code coverage support, is it OK to add supports for With the support, we can specify a filter of Mocha test cases to be executed. For example, it can be used with the coverage support like:
If I'd better open a separate issue/PR, I will do that accordingly. |
is that something different then using I am asking because ExTester is currently supporting this configs |
Yes, it works in the same way. The difference is in that user can filter the test cases to be executed without changing config files. I found it useful in develiopment phase. |
7e3ee49
to
af117d2
Compare
I have added following lines to
|
@djelinek I believe this is prepared for another examination. Could you please review it once more? Thanks! |
yes, i am sorry, I will try and get back ASAP |
that is cool, but I think it would be better to provide in separate PR.. could you please move it to another one? |
af117d2
to
cf7dea5
Compare
@djelinek OK I will create a separate PR for MOCHA_GREP/MOCHA_INVERT. On a different topic... I noticed two test cases failed in
What do you think? I think option 1 would be acceptable because currently the .vsix installation is mandatory for running ExTester.
|
#1262 was opened for MOCHA_GREP/MOCHA_INVERT environment variable support. |
460a0c1
to
e1be283
Compare
@djelinek I have implemented the option 1 in the latest commit for fixing the failure. Please let me know if you have different opinion. Thanks! |
those are valid points and I will need to take a deeper look. Currently I am not sure if that is ok to install vsix into vscode instance and then use source of the same extensions as thing to really test with.. it is becoming a bit confusing at the moment |
a57fbe7
to
e6f837e
Compare
Option 4 came to my mind today:
This re-use of the |
so if I understand correctly.. just let me to rephrase.. if
if only
if
am I understand it correctly? feel free to correct me.. I am being already a bit trapped here sorry about that 😵💫 |
…verage config files
e6f837e
to
0b1a531
Compare
Yes, your understanding is correct. I have implemented it with this commit. Essentially it is these three lines in if (!this.code.coverageEnabled || cleanup) {
await this.installVsix({useYarn});
} With that change, I ran
and it completed successfully. Then I modified |
okay. let's kick off this new feature with option 4) that seems usable.. I think one last thing which is this PR missing is to add new page for our wiki about coverage itself.. and a bit explanation how it works maybe bring the summary about what we discussed here about how it will work, could you please create into |
|
@djelinek I have created While doing the updates, I found some new updates (e.g. |
(Continue from #1227)
Before submitting your PR, please review the following checklist:
Before merging the PR:
main
branch is green.