wearerequired / traduttore

🗼 A WordPress plugin to improve the I18N workflow for your own projects based on @GlotPress.
https://wearerequired.github.io/traduttore/
72 stars 12 forks source link

Improve test coverage #46

Closed swissspidy closed 6 years ago

swissspidy commented 6 years ago

Code coverage with this PR is at ~60%.

While adding tests, a few bugs were spotted and fixed at the same time, notably in the GitHubUpdater class.

codecov-io commented 6 years ago

Codecov Report

Merging #46 into master will increase coverage by 56.27%. The diff coverage is 96.66%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master      #46       +/-   ##
=============================================
+ Coverage      4.16%   60.43%   +56.27%     
- Complexity      105      118       +13     
=============================================
  Files             8        8               
  Lines           336      364       +28     
=============================================
+ Hits             14      220      +206     
+ Misses          322      144      -178
Impacted Files Coverage Δ Complexity Δ
inc/Plugin.php 31.03% <100%> (+31.03%) 50 <0> (+2) :arrow_up:
inc/TranslationApiRoute.php 100% <100%> (+100%) 4 <0> (ø) :arrow_down:
inc/GitHubUpdater.php 90.72% <95.45%> (+90.72%) 26 <8> (+6) :arrow_up:
inc/ZipProvider.php 77.77% <0%> (+77.77%) 21% <0%> (+5%) :arrow_up:

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 488477d...a3e7b0b. Read the comment docs.