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

Category coverage diff #52

Merged
merged 3 commits into from
Apr 10, 2019
Merged

Category coverage diff #52

merged 3 commits into from
Apr 10, 2019

Conversation

manycoding
Copy link
Contributor

Same as #51 , but for categories.
arche.rules.category.get_difference(g.source_items.key, g.target_items.key, g.source_items.df, g.target_items.df, ["META_TEMPLATE_NAME", "BIRTH_COUNTRY"]).show()
Screenshot 2019-04-09 at 14 48 18

@manycoding manycoding changed the base branch from master to result_stats April 9, 2019 18:49
@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #52 into result_stats will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff                @@
##           result_stats      #52      +/-   ##
================================================
+ Coverage          62.2%   62.27%   +0.07%     
================================================
  Files                25       25              
  Lines              1585     1588       +3     
  Branches            278      279       +1     
================================================
+ Hits                986      989       +3     
  Misses              573      573              
  Partials             26       26
Impacted Files Coverage Δ
src/arche/rules/category.py 100% <100%> (ø) ⬆️

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 c33009a...70fd8a4. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #52 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   62.22%   62.27%   +0.05%     
==========================================
  Files          25       25              
  Lines        1591     1588       -3     
  Branches      280      279       -1     
==========================================
- Hits          990      989       -1     
+ Misses        575      573       -2     
  Partials       26       26
Impacted Files Coverage Δ
src/arche/rules/category.py 100% <100%> (ø) ⬆️
src/arche/rules/coverage.py 100% <0%> (ø) ⬆️
src/arche/report.py 68.62% <0%> (+1.31%) ⬆️

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 8444636...f3b5421. Read the comment docs.

cat_difs.name = (
f"Coverage difference between {source_key}'s and {target_key}'s {c}"
)
cat_difs = cat_difs[cat_difs > 10]
Copy link
Member

@ivankivanov ivankivanov Apr 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of a hardcoded value there could be a default value and option to be override it.
We have something similar in BVATF:

https://github.com/scrapinghub/bv_qa_automation/wiki/Coverage-Compare-Fields-Limits:

Brand_name - 10%
Description - 15%
Features - 15%
Identifier_add - 5%

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once anyone asks for that, it could be done.

@manycoding manycoding changed the base branch from result_stats to master April 10, 2019 15:52
@manycoding manycoding merged commit 10971d9 into master Apr 10, 2019
@manycoding manycoding deleted the category_coverage_diff branch April 10, 2019 15:56
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.

None yet

2 participants