Skip to content

Micro Improvement to web tests#2527

Merged
celo-ci-bot-user merged 5 commits intomasterfrom
aaronmgdr/more-testing
Jan 25, 2020
Merged

Micro Improvement to web tests#2527
celo-ci-bot-user merged 5 commits intomasterfrom
aaronmgdr/more-testing

Conversation

@aaronmgdr
Copy link
Copy Markdown
Contributor

Description

adds test for leaderboard and and abortable fetch
removes old missiontext component
update coverage targets

Tested

Other changes

I changed the target on mobile as 10% seemed way to low.

test functionality of expanding leaderboard
unused since a previous redesign
 with added tests 80 is a better target for web, and on mobile the numbers looked way to low
Comment thread .codecov.yml
flags: web
threshold: 5%
target: 70%
threshold: 2%
Copy link
Copy Markdown
Contributor Author

@aaronmgdr aaronmgdr Jan 24, 2020

Choose a reason for hiding this comment

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

from my understanding threshold is how much it can decrease from master before a flag is raised, and target is the absolute amount of lines that need to be tested overall

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 24, 2020

Codecov Report

Merging #2527 into master will decrease coverage by 0.02%.
The diff coverage is 49.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2527      +/-   ##
==========================================
- Coverage    73.6%   73.58%   -0.03%     
==========================================
  Files         554      555       +1     
  Lines       13785    13816      +31     
  Branches     1425     1425              
==========================================
+ Hits        10147    10167      +20     
- Misses       3358     3369      +11     
  Partials      280      280
Flag Coverage Δ
#mobile 74.1% <49.29%> (-0.04%) ⬇️
#web 72.86% <ø> (ø) ⬆️
Impacted Files Coverage Δ
packages/mobile/test/schemas.ts 100% <ø> (ø) ⬆️
packages/mobile/src/geth/reducer.ts 73.33% <0%> (-7.92%) ⬇️
packages/mobile/src/geth/selectors.ts 100% <100%> (ø)
packages/mobile/src/geth/actions.ts 100% <100%> (ø) ⬆️
packages/mobile/src/redux/selectors.ts 78.57% <100%> (ø) ⬆️
packages/mobile/src/geth/saga.ts 24.13% <31.57%> (+0.88%) ⬆️
packages/mobile/src/web3/saga.ts 38.31% <39.28%> (+0.87%) ⬆️
packages/mobile/src/invite/JoinCelo.tsx 80.55% <50%> (-0.88%) ⬇️
packages/mobile/src/account/DataSaver.tsx 71.15% <60%> (-2.66%) ⬇️
... and 1 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 686c8eb...45fdd42. Read the comment docs.

@jeanregisser
Copy link
Copy Markdown
Contributor

I changed the target on mobile as 10% seemed way to low.

Yes 😅 👍

@celo-ci-bot-user celo-ci-bot-user merged commit 1d41d57 into master Jan 25, 2020
@celo-ci-bot-user celo-ci-bot-user deleted the aaronmgdr/more-testing branch January 25, 2020 00:28
lucasege pushed a commit that referenced this pull request Jan 27, 2020
aaronmgdr added a commit that referenced this pull request Jan 28, 2020
* master:
  🧹Web cleanup (readme + static dir) (#2562)
  Add readable proposals to governance:view command (#2545)
  Add explicit gas to exchange transactions to prevent errors (#2552)
  Fix off-by-one error in attributing signatures to blocks in CLI (#2559)
  ✅ add test for phone Input component (#2554)
  Add Youtube to Footer +  (#2556)
  Fix rounding error in Election.sol (#2540)
  [Wallet] Bump @celo/client to 0.0.266 (#2551)
  [Wallet] E2E test improvements (#2542)
  Deployed integration (#2550)
  do not fetch affiliates (#2508)
  Added more CLI checks for registering validators and groups (#2491)
  Micro Improvement to web tests (#2527)
  [Wallet] Prompt users with connectivity issues to switch to forno (#2526)
  cli: Fix voter rewards presentation (#2543)
  [Wallet] Fix missing spanish translation  (#2539)
  Downtime slashing when epoch changes (#2436)
lucasege pushed a commit that referenced this pull request Jun 24, 2020
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.

5 participants