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

markers: add additional problem-manager tests #8604

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

vince-fugnitto
Copy link
Member

@vince-fugnitto vince-fugnitto commented Oct 8, 2020

What it does

The following pull-request adds additional tests for the problem-manager as well as refactorings:

  • ProblemManager.cleanAllMarkers
    Verify that the method correctly cleans all available markers.

  • ProblemManager.findMarkers
    Verify that the method correctly returns markers for different filters.

  • ProblemManager.getUris
    Verify that the method correctly returns the number of uris under different circumstances.

  • ProblemManager.getProblemStat
    Verify that the method correctly returns the total number problem stats (errors, warnings, infos) under different circumstances.

How to test

Verify the content, the CI should successfully pass (build and tests).

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

@vince-fugnitto vince-fugnitto added quality issues related to code and application quality markers issues related to problem markers test issues related to unit and api tests labels Oct 8, 2020
@vince-fugnitto vince-fugnitto self-assigned this Oct 8, 2020
Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one comment.

Copy link
Contributor

@DucNgn DucNgn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good 👍

The following commit updates the `problem-manager` tests:
- updates the existing unit tests.
- adds additional tests:
  - adds tests to find uris.
  - adds tests to verify the problem stats.
  - adds additional `findMarker` tests for different filters.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto
Copy link
Member Author

@marechal-p I updated the problem-manager unit tests based on your suggestion to simplify it and avoid the confusion it may have caused before.

@vince-fugnitto vince-fugnitto merged commit 8004953 into master Oct 9, 2020
@vince-fugnitto vince-fugnitto deleted the vf/problems-tests branch October 9, 2020 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
markers issues related to problem markers quality issues related to code and application quality test issues related to unit and api tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants