-
Notifications
You must be signed in to change notification settings - Fork 59
feat: add test coverage #1606
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
base: main
Are you sure you want to change the base?
feat: add test coverage #1606
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"all": true, | ||
"src": ["client/src", "server/src"], | ||
"exclude": [ | ||
"**/node_modules/**", | ||
"**/*.test.*", | ||
"client/dist", | ||
"client/src/connection/rest/api", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are files auto-generated by OpenAPI |
||
"server/dist", | ||
"tools", | ||
"server/src/python" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry this directory looks not copied from node_modules to me. where did you see the copy? |
||
], | ||
"reporter": ["html", "text"], | ||
"excludeAfterRemap": true, | ||
"checkCoverage": true, | ||
"lines": 52, | ||
"statements": 52, | ||
"branches": 71, | ||
"functions": 43 | ||
Comment on lines
+15
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about adding minimum levels now just to make sure things don't get worse (the numbers above are right below the current values), with the eventual goal being having code coverage at 80%. And, do we care about these individual numbers, or do we really only care about lines (I'm inclined to believe this should probably only be "lines": 80)? Last, is 80% code coverage reasonable in an open source repository, or would that be asking too much from contributors? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would vote to not fail the build until we're fully ready. I guess we're not setting up testing infrastructure to the webviews. So if lines added in webviews and make the numbers worse it's not straightforward to fix. |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ node_modules | |
*.node | ||
*.qps-ploc.json | ||
l10n/bundle.l10n.json | ||
.history | ||
.history | ||
coverage/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry=https://registry.npmjs.org |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ server/**/*.json | |
|
||
# VSCode history | ||
.history/ | ||
|
||
coverage/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 see
client/test
in the coverage report. I guess we should exclude it.