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

Add Sync framework #202

Merged
merged 32 commits into from
Jan 10, 2020
Merged

Add Sync framework #202

merged 32 commits into from
Jan 10, 2020

Conversation

pietrocaselani
Copy link
Owner

The idea here is to create a separated framework to handle the synchronization between the APIs (Trakt, TMDB, TVDB) and the persistence layer of the app.

@codecov-io
Copy link

codecov-io commented Dec 31, 2019

Codecov Report

Merging #202 into master will increase coverage by 25.71%.
The diff coverage is 67.84%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #202       +/-   ##
===========================================
+ Coverage   34.64%   60.36%   +25.71%     
===========================================
  Files         292      310       +18     
  Lines        7291     7654      +363     
===========================================
+ Hits         2526     4620     +2094     
+ Misses       4765     3034     -1731
Impacted Files Coverage Δ
CouchTrackerCoreTests/TMDBEntitiesMock.swift 0% <ø> (ø) ⬆️
TraktSwift/Endpoints/Movies.swift 90.47% <ø> (+28.57%) ⬆️
TVDBSwiftTests/TestableDateProvider.swift 100% <ø> (+100%) ⬆️
TraktSwiftTests/TestableDateProvider.swift 100% <ø> (+100%) ⬆️
TraktSwift/Endpoints/Shows.swift 77.08% <ø> (+77.08%) ⬆️
...BSwiftTests/TVDBTokenRequestInterceptorTests.swift 100% <ø> (+100%) ⬆️
...ouchTrackerCore/Core/Bundle+CouchTrackerCore.swift 42.85% <ø> (ø) ⬆️
TraktSwiftTests/TraktTokenInterceptorTests.swift 100% <ø> (+100%) ⬆️
...loaders/DefaultWatchedShowEntitiesDownloader.swift 10.34% <0%> (+1.72%) ⬆️
...rCore/CodeGenerated/EnumProperties.generated.swift 0% <0%> (ø)
... and 157 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 528ed3f...f37bf4d. Read the comment docs.

Pietro Caselani added 25 commits December 31, 2019 18:07
* Only one entry point, the function `setupSyncModule(trakt:)`
* To ensure the statement above, the tests run in DEBUG mode without importing the framework using `@testable`
* I am using snapshot testing because the JSON is big, there is a lot of data about episodes, seasons and the tv show
* I will probrably use the snapshot testing library for screenshot tests... excited for this
@pietrocaselani pietrocaselani merged commit ae9f87a into master Jan 10, 2020
@pietrocaselani pietrocaselani deleted the sync-reducer branch January 10, 2020 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants