Closed TCke83 closed 1 year ago
Base: 79.57% // Head: 79.44% // Decreases project coverage by -0.14%
:warning:
Coverage data is based on head (
3afcc79
) compared to base (0fd541f
). Patch coverage: 76.85% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Hi, that's a lot of code. It will take a while to review. But well, thanks for contribution.
It's the same code change as PR #174, but it took me a while to find the time to write the tests
So we put some guidance for testing here: https://github.com/TCke83/loxone-java/pull/1/files please take a look, we can discuss further...
Added a few tests for LoxoneState class
Hi @TCke83 do you plan to work more on this yet, or should we do final walkthrough? I briefly checked the overall coverage and it would be nice to test also th exceptional flows in LoxoneState - do you nedd help with that?
Once you feel it shoudl be finalized, please just reorganize the commits - one commit with lombok refactorings and everything else could be in the second one.
I've added a test for the constructor check. The exception flow in the initializeState() method is covered in test 'controlStates should be compatible'. I don't really see a way to test the initializeState() method further, if you think this should be done, some help would be welcome.
Please take a look at https://github.com/TCke83/loxone-java/pull/2 I finished the changes my colleague proposed as guidance. Please take a look and take notes for the future. The exceptions in LoxoneState are still not covered, but it's probably OK for now - can be added in future development if needed. Once you accept my changes, squash it into single commit and I am ready to merge and release.
I've looked at the test and merged & squashed them in the pull request. Thanks for the help and guidance.
New pull request with same changes + added tests.
The LoxoneState class needs some help for testing, i'm still a newbie with the used mocking framework and with kotlin code.