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

Replace Mock with xbmc library replacement #259

Merged
merged 1 commit into from
May 20, 2019

Conversation

dagwieers
Copy link
Collaborator

For testing the caching-functionality the use of Mock() became an even
more complex issue. So this replaces a quite complex Mock() setup to
mock kodiwrapper with an alternative implementation of the xbmc
libraries.

The benefit is that we don't have to fake every possible kodiwrapper
functionality, but only the xbmc functionality that kodiwrapper is
using. This means we are now also testing kodiwrapper to a greater
extent.

This is split off from #258

@dagwieers dagwieers added the enhancement New feature or request label May 20, 2019
@dagwieers dagwieers added this to the v1.10.0 milestone May 20, 2019
@dagwieers dagwieers force-pushed the rewrite-unit-tests branch 2 times, most recently from 17ea51f to a476147 Compare May 20, 2019 18:12
This PR includes:
- Implementation of xbmc libraries
- New unit tests

For testing the caching-functionality the use of Mock() became an even
more complex issue. So this replaces a quite complex Mock() setup to
mock kodiwrapper with an alternative implementation of the xbmc
libraries.

The benefit is that we don't have to fake every possible kodiwrapper
functionality, but only the xbmc functionality that kodiwrapper is
using. This means we are now also testing kodiwrapper to a greater
extent.
@dagwieers dagwieers force-pushed the rewrite-unit-tests branch from a476147 to 69302df Compare May 20, 2019 18:13
@dagwieers dagwieers merged commit 630503c into add-ons:master May 20, 2019
dagwieers added a commit to dagwieers/plugin.video.vrt.nu that referenced this pull request May 20, 2019
This PR includes:
- Implementation of xbmc libraries
- New unit tests

For testing the caching-functionality the use of Mock() became an even
more complex issue. So this replaces a quite complex Mock() setup to
mock kodiwrapper with an alternative implementation of the xbmc
libraries.

The benefit is that we don't have to fake every possible kodiwrapper
functionality, but only the xbmc functionality that kodiwrapper is
using. This means we are now also testing kodiwrapper to a greater
extent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant