-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unit test for cics program tree #197
Unit test for cics program tree #197
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #197 +/- ##
===========================================
- Coverage 93.76% 27.73% -66.04%
===========================================
Files 75 147 +72
Lines 770 5218 +4448
Branches 42 916 +874
===========================================
+ Hits 722 1447 +725
- Misses 48 3771 +3723 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @almightyrush
Thanks for working on unit tests for the VSCE. 🙏
Also, you should have write access if you'd like to contribute directly from a branch 🙏
Hey @almightyrush - I notice that this improvement in unit testing (yay) drops the reported coverage down from 94%ish down to 28%ish. I haven't quite worked out why .... I would imagine 28% is closer to the truth. Are we scanning a lot more now? Or are we accidentally uploading files more often than we ought to? 🤔 |
e7e8513
to
13af478
Compare
Hey @davenice, |
Hi @zFernand0, |
Signed-off-by: Rushabh Sojitra <[email protected]>
…f mocking. Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
Signed-off-by: Rushabh Sojitra <[email protected]>
13af478
to
bf271fb
Compare
Signed-off-by: Rushabh Sojitra <[email protected]>
I think @zFernand0 is saying that because we're committers now, you don't have to work on your own fork but instead can create branches on the main repo and create PRs from there, going forward 👍 |
@@ -13,7 +13,8 @@ | |||
"sourceMap": true, | |||
"newLine": "lf", | |||
"strictNullChecks": false, | |||
"noUnusedLocals": false | |||
"noUnusedLocals": false, | |||
"skipLibCheck": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@almightyrush - can you help me understand what skipLibCheck does - is it required for the tests to work correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the typescript code compiles, it is including the node_modules, and there are some compile errors which fails the npm run build
. So skipping the node_modules from compiling.
When the typescript code compiles, it is including the node_modules, and there are some compile errors which fails the npm run build . So skipping the node_modules from compiling.
Ah I see. That makes sense.
Do you remember which libraries we had issues with? If it was Zowe Explorer
perhaps we should contribute fixes back in the future so that we can enable
this checking again?
If it's other libraries that's trickier 🙂
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a yes from me overall!
I don't have a strong preference on whether we start including the I think it's nice to see hte numbers gradually increase with every PR, though. 😋 |
I think let's include it ... honestly it represents reality a bit better 😬 ....! (And as you say, it means we can monitor the numbers better!) |
@zFernand0 - would you have liked us to have an issue for this? @almightyrush's brief was to prototype a test for one type so that other people could use it as inspiration! Perhaps that explanation is required to clarify the seemingly arbitrary unit test :-) |
No worries. And thank you for asking! 🙏 I think it is nice to have issues for PRs that we believe will be impactful to end-users, since the issue could provide more context/details about the problem we are trying to solve (or feature we are trying to implement). However, I think it's fine to save ourselves some paperwork for infrastructure-like PRs or other tech-debt items that won't make their way into the changelog (or release notes on docs.zowe.org). 🙏 Again, thanks for asking! 🙏 |
What It Does
Initial unit test setup for vsce package and unit test for CICSProgramTree file
How to Test
To test hit command: npm run test
Review Checklist
I certify that I have: