-
Notifications
You must be signed in to change notification settings - Fork 12
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(openchallenges): added unit tests to the image service #2291
feat(openchallenges): added unit tests to the image service #2291
Conversation
@tschaffter I think I've gotten this error before but now that I've deleted the node_modules folder I'm seeing this:
Can you confirm that it's unrelated to node_modules and that I need to check my unit test code, please? |
Did you recreate the folder with I believe that the error message is reported by a git hook but the error effectively comes from when |
...src/test/java/org/sagebionetworks/openchallenges/image/service/api/ImageApiDelegateTest.java
Outdated
Show resolved
Hide resolved
* not-found page: upgrade MatCard * org-profile page: remove unused tabs component * github-button: upgrade MatButton * _app-theme: upgrade legacy; fix fonts * navbar: upgrade MatButton; fix colors and padding * fix typography for buttons * signup page: upgrade components * add required `mat-label` * update styles to account for changes * user-button: upgrade MatButton, MatMenu * update styles to account for changes * upgrade component in commented code * remove dependency on legacy-* in _app-theme * add typography to discord button; add discord theme * schematic: remove unused font; upgrade legacies
…2287) * remove Sage from sponsor list * apply section-title styling * link out to ITCR website * use more descriptive variable name
…gular` (Sage-Bionetworks#2293) * Remove schematic-app and schematic-api-client-angular * Update `tsconfig.base.json`
…ments (Sage-Bionetworks#2294) * Format JSON on save * Enable format on save for jsonc
@tschaffter I added changes to unit tests for exception section of the project. |
What is the coverage percentage for the two new files from the HTML report? |
@tschaffter I was unable to see any changes so I went ahead and created the unit tests. I wrote it as a comment in the Task and forgot to write it here. I'm hoping to be able to see the changes in coverage once the unit tests are synced to the main branch. |
@mdsage1 The coverage report is generated properly on my end. This PR brings the coverage of the image service to 30% (see screenshot). Regarding the Java classes generated by OpenAPI Generator, there are two ways we could handle them (future work):
I'll approve and merge this PR. CoverageGlobalException package |
Description
Updated the unit test to cover api, model/dto and exception. Sonar was not working on my end so I'm unable to confirm the increase in coverage until the pr has been merged.
Related Issue
Add unit test for getting a single organization #1528
[Story] Write a unit test for the enpoint of the image service #1456
feat: Create unit test for the image service #1472
Changelog