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

test: Improve migration unit tests #6881

Merged
merged 2 commits into from
Jul 26, 2023
Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 24, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add needs-qa label when dev review is completed
  5. Add QA Passed label when QA has signed off

Description

The migration unit tests have been updated to group tests by the migration number. One additional test case has been added as well, to cover the case where the affected state doesn't exist.

Issue

This change was done to simplify PR #6872, which is part of https://github.com/MetaMask/mobile-planning/issues/798

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@Gudahtt Gudahtt marked this pull request as ready for review July 24, 2023 23:29
@Gudahtt Gudahtt requested a review from a team as a code owner July 24, 2023 23:29
@Gudahtt Gudahtt added No QA Needed Apply this label when your PR does not need any QA effort. needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jul 24, 2023
@Gudahtt Gudahtt force-pushed the improve-migration-unit-tests branch 4 times, most recently from e1f1f76 to 9540678 Compare July 25, 2023 16:32
@Gudahtt Gudahtt force-pushed the improve-migration-unit-tests branch 3 times, most recently from ba3370c to 4233be3 Compare July 25, 2023 20:41
The migration unit tests have been updated to group tests by the
migration number. One additional test case has been added as well, to
cover the case where the affected state doesn't exist.

This change was done to simplify PR #6872, which is part of
MetaMask/mobile-planning#798
@Gudahtt Gudahtt force-pushed the improve-migration-unit-tests branch from 4233be3 to 7046801 Compare July 26, 2023 11:42
@sonarcloud
Copy link

sonarcloud bot commented Jul 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@leotm leotm left a comment

Choose a reason for hiding this comment

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

lgtm!

@Gudahtt Gudahtt merged commit 6677a5f into main Jul 26, 2023
11 checks passed
@Gudahtt Gudahtt deleted the improve-migration-unit-tests branch July 26, 2023 15:32
@github-actions github-actions bot locked and limited conversation to collaborators Jul 26, 2023
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jul 26, 2023
@metamaskbot metamaskbot added the release-7.5.0 Issue or pull request that will be included in release 7.5.0 label Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.5.0 Issue or pull request that will be included in release 7.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants