-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add check for not valid constraints #382
Conversation
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.
Good job! Just need to polish
pg-index-health/src/main/java/io/github/mfvanek/pg/checks/host/NotValidConstraintsOnHost.java
Outdated
Show resolved
Hide resolved
pg-index-health-model/src/main/java/io/github/mfvanek/pg/model/constraint/Constraint.java
Show resolved
Hide resolved
pg-index-health-model/src/main/java/io/github/mfvanek/pg/model/constraint/Constraint.java
Outdated
Show resolved
Hide resolved
pg-index-health-model/src/main/java/io/github/mfvanek/pg/model/constraint/Constraint.java
Outdated
Show resolved
Hide resolved
pg-index-health-model/src/main/java/io/github/mfvanek/pg/model/constraint/Constraint.java
Outdated
Show resolved
Hide resolved
...x-health/src/main/java/io/github/mfvanek/pg/checks/cluster/NotValidConstraintsOnCluster.java
Outdated
Show resolved
Hide resolved
...dex-health/src/test/java/io/github/mfvanek/pg/checks/host/NotValidConstraintsOnHostTest.java
Outdated
Show resolved
Hide resolved
...alth/src/test/java/io/github/mfvanek/pg/checks/cluster/NotValidConstraintsOnClusterTest.java
Outdated
Show resolved
Hide resolved
...alth/src/test/java/io/github/mfvanek/pg/checks/cluster/NotValidConstraintsOnClusterTest.java
Outdated
Show resolved
Hide resolved
...dex-health/src/test/java/io/github/mfvanek/pg/checks/host/NotValidConstraintsOnHostTest.java
Outdated
Show resolved
Hide resolved
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.
There are failed tests 352 tests completed, 13 failed
and issues with code coverage
* What went wrong:
Execution failed for task ':pg-index-health-model:jacocoTestCoverageVerification'.
> Rule violated for bundle pg-index-health-model: classes missed count is 2.0, but expected maximum is 0.0
Rule violated for bundle pg-index-health-model: methods missed count is 13.0, but expected maximum is 0.0
Rule violated for bundle pg-index-health-model: lines missed count is 30.0, but expected maximum is 0.0
Rule violated for bundle pg-index-health-model: instructions covered ratio is 0.9, but expected minimum is 1.0
Rule violated for bundle pg-index-health-model: branches covered ratio is 0.8, but expected minimum is 1.0
Even though I filled the test coverage of the newly created class to 100% and corrected other test errors, the coverage is not filled due to classes other than the coverage stack. What should I do?
|
JaCoCo provides an html report. You can analyze it and figure out parts not covered properly with tests. P.S. Also you can split your PR into two parts and push changes to model separately.
|
This is where the coverage issue for the private constructor. I don't think test coverage for this class is needed. What are your thoughts? |
It's definitely not an issue. We don't collect code coverage from test classes. Push your changes and I'll take a look |
Hi @BLoHny, |
original: #374
Relates to #362