Skip to content
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

[Feature] Increase the coverage of OC organization service to >30% #2063

Closed
1 task done
Tracked by #1459
tschaffter opened this issue Aug 31, 2023 · 20 comments
Closed
1 task done
Tracked by #1459

[Feature] Increase the coverage of OC organization service to >30% #2063

tschaffter opened this issue Aug 31, 2023 · 20 comments

Comments

@tschaffter
Copy link
Member

What product(s) is this feature for?

OpenChallenges

Description

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tschaffter tschaffter changed the title [Feature] Increase the coverage of OC organization service to >20% [Feature] Increase the coverage of OC organization service to >30% Aug 31, 2023
@tschaffter
Copy link
Member Author

Added to Sprint 23.10

@tschaffter tschaffter added the java label Oct 5, 2023
@tschaffter
Copy link
Member Author

Added to Sprint 23.11

@mdsage1
Copy link
Contributor

mdsage1 commented Nov 9, 2023

#2348 improved overall coverage to 15% and exception coverage to 100%

@tschaffter
Copy link
Member Author

@mdsage1 Can you please add an update to this ticket? We usually do it like this:

## Update yyyy-mm-dd

Description of where this ticket stands, whether there are blockers, expected completion date.

@mdsage1
Copy link
Contributor

mdsage1 commented Dec 4, 2023

Update 2023-12-04

PR #2348 approved on 12-04-2023 improving unit test coverage for exceptions to 100%.
PR is pending as well as the implementation of additional unit tests to reach > 30% coverage in org service.
Current organization service unit test coverage is now 15%.

Blockers

Using a test database for unit tests
Will need to determine the appropriate way to either Mock the database or use another method before unit tests can be implemented for the classes related to the database.

Image

@tschaffter
Copy link
Member Author

Current organization service unit test coverage is now 15%.

The reference is the value in the CODE QUALITY dashboard (9.5%).

Using a test database for unit tests

I will take over this ticket or assign it to a backend engineer if we can get access to one next year. For now I'm adding this ticket back to the backlog.

@tschaffter
Copy link
Member Author

Added to backlog

@tschaffter
Copy link
Member Author

Added to Sprint 23.12

@mdsage1
Copy link
Contributor

mdsage1 commented Dec 8, 2023

Update 2023-12-08

PRs, #2348 and #2388, have been merged to address unit testing in organization service.
Overall coverage increased to 12.2% for organization service after #2388 was merged.
image

@tschaffter
Copy link
Member Author

Added to Sprint 24.1

@tschaffter
Copy link
Member Author

@mdsage1 Can you please provide an update on this ticket and when it could be completed?

@tschaffter tschaffter assigned tschaffter and unassigned mdsage1 Feb 7, 2024
@tschaffter
Copy link
Member Author

@mdsage1 I will take over this task, which I think you almost complete.

@tschaffter
Copy link
Member Author

Added to Sprint 24.2

@mdsage1
Copy link
Contributor

mdsage1 commented Feb 11, 2024

@tschaffter Please review PR #2389 so that I can document the updates to the coverage that resulted from the unit tests I wrote. These updates should be what's needed to push coverage of OC organization service above 30% but cannot be verified until the PR has been reviewed again. Your suggested changes were implemented ~1 month ago.

@tschaffter
Copy link
Member Author

The PR #2389 has been merged. Thanks!

@mdsage1
Copy link
Contributor

mdsage1 commented Feb 13, 2024

PR #2389 only increased code coverage by 0.1% which seems misaligned with expectations. The new coverage is at 12.3%. @tschaffter plans to investigate what factors impact this.

@mdsage1
Copy link
Contributor

mdsage1 commented Feb 23, 2024

Overall coverage increased to 17.1% for organization service after #2389 was merged.

image

@tschaffter tschaffter reopened this Feb 23, 2024
@tschaffter
Copy link
Member Author

Update 2024-02-23

Reopening now that we can get the coverage value from Sonar and that this value is below the target (30%). @mdsage1 will investigate where the discrepancy come from.

@tschaffter
Copy link
Member Author

Added to Backlog

@tschaffter tschaffter removed their assignment Mar 4, 2024
@mdsage1
Copy link
Contributor

mdsage1 commented Mar 18, 2024

Update 2023-03-18

The latest Sonar Code Quality Report indicates that organization-service coverage is 22.6%. No new unit tests have been added.
image

@tschaffter tschaffter closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants