PLUGINAPI-189 Add test coverage#292
Conversation
SummaryThis PR adds test coverage for the
The test methods follow the snake_case naming convention and use AssertJ for clear, readable assertions. What reviewers should knowScope: Test-only change, no production code modified. Key areas to review:
Note: The tests cover the asymmetric mapping between rule severity (INFO/MINOR/MAJOR/CRITICAL/BLOCKER) and impact severity (INFO/LOW/MEDIUM/HIGH/BLOCKER) where MINOR→LOW and MAJOR→MEDIUM. Both directions are tested with their respective enum types.
|
5986c23 to
4c50a85
Compare
|





For SonarSourcers:
Check before making the PR ready for review
@since X.Yin the JavaDoc@Deprecated@deprecated since X.Yin the JavaDocsnake_case, for example:test_validate_input. It can also start with themethodNameFor external contributors:
Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes. If you would like to see a new feature, please create a new thread in the forum "Suggest new features".
With that in mind, if you would like to submit a code contribution, make sure that you adhere to the following guidelines and all tests are passing:
Please explain your motives to contribute this change: what problem you are trying to fix, what improvement you are trying to make
Use the following formatting style: SonarSource/sonar-developer-toolset
Provide a unit test for any code you changed
If there is a JIRA ticket available, please make your commits and pull request start with the ticket ID (PLUGINAPI-XXXX)
Please note that opening the PR will notify all the squad members. Please make sure you keep it in DRAFT and mark it ready, when all the checks are green.
We will try to give you feedback on your contribution as quickly as possible.
Thank You! The SonarSource Team