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

unit test enhancements #1871

Merged
merged 3 commits into from
Jul 12, 2022
Merged

unit test enhancements #1871

merged 3 commits into from
Jul 12, 2022

Conversation

yilmazbahadir
Copy link
Contributor

@yilmazbahadir yilmazbahadir commented Jul 1, 2022

What was the issue?

Unit test coverage was too low (~22%).

What's the fix?

  • Added first round of the component unit tests.
  • Removed unused(with no reference) components.
  • After the added tests coverage should be around 28%.
  • More to come with future PRs.

Baha added 2 commits June 26, 2022 14:47
…lay, public key display etc. tests added

Added/updated unit tests for the following components:
AccountMetadataDsiplay, AccountMultisigGraph, AccountNameDisplay,
AccountPublicKeyDisplay, AccountRestrictionsList, AccountFieldSelector,
AccountSignerSelector
@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2022

Codecov Report

Merging #1871 (f015efd) into dev (c9b2817) will increase coverage by 4.82%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1871      +/-   ##
==========================================
+ Coverage   20.76%   25.58%   +4.82%     
==========================================
  Files         597      591       -6     
  Lines       13827    14022     +195     
  Branches     2173     2372     +199     
==========================================
+ Hits         2871     3588     +717     
+ Misses      10953    10349     -604     
- Partials        3       85      +82     
Flag Coverage Δ
wallet-desktop 25.58% <100.00%> (+4.82%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ts/AccountAddressDisplay/AccountAddressDisplay.vue 100.00% <ø> (+100.00%) ⬆️
...nts/AccountMultisigGraph/AccountMultisigGraphTs.ts 100.00% <ø> (+100.00%) ⬆️
...ccountRestrictionsList/AccountRestrictionsList.vue 100.00% <ø> (+100.00%) ⬆️
...nts/AccountSelectorField/AccountSelectorFieldTs.ts 100.00% <ø> (+19.23%) ⬆️
...ponents/ContactDetailPanel/ContactDetailPanelTs.ts 0.00% <ø> (ø)
src/store/Account.ts 5.27% <ø> (+0.51%) ⬆️
src/store/Restriction.ts 21.05% <ø> (+7.53%) ⬆️
...accounts/AccountDetailsPage/AccountDetailsPage.vue 0.00% <ø> (ø)
...ccounts/AccountDetailsPage/AccountDetailsPageTs.ts 0.00% <ø> (ø)
...ounts/AccountMetadataPage/AccountMetadataPageTs.ts 0.00% <ø> (ø)
... and 278 more

gimre-xymcity
gimre-xymcity previously approved these changes Jul 11, 2022
Copy link
Member

@gimre-xymcity gimre-xymcity left a comment

Choose a reason for hiding this comment

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

👍 nice

namespaced: true,
getters: {
explorerUrl: () => 'http://testnet.symbol.fyi/',
faucetUrl: () => 'http://https://testnet.symbol.tools/',
Copy link
Member

Choose a reason for hiding this comment

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

http://https:// ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks mate, fixed. Your review's gone to stale unfortunately.

…to plain

AccountMetadataDisplay test is refactored
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.

3 participants