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

fix: Minimize skipping tests #8375

Merged
merged 13 commits into from
Jan 25, 2024
Merged

Conversation

chrisleewilcox
Copy link
Contributor

@chrisleewilcox chrisleewilcox commented Jan 23, 2024

Description

Running tests based on TEST_SUITE only requires skipping a lot of tests which takes significant time for the testrun to complete. Isolating tests suite within the tests folder will only skip tests within that folder significantly reducing tests run times.

This change applies to SmokeConfirmations and SmokeSwaps. SmokeCore tests are located in multiple folders and will still skip tests that are not SmokeCore.

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

image

image

After

image

image

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@chrisleewilcox chrisleewilcox self-assigned this Jan 23, 2024
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@chrisleewilcox chrisleewilcox changed the title tests: Run tests within tests path to avoid skipping tests fix: Run tests within tests path to avoid skipping tests Jan 23, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2652a24) 40.44% compared to head (c58b12e) 40.44%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8375   +/-   ##
=======================================
  Coverage   40.44%   40.44%           
=======================================
  Files        1239     1239           
  Lines       29975    29975           
  Branches     2875     2875           
=======================================
  Hits        12122    12122           
  Misses      17156    17156           
  Partials      697      697           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrisleewilcox chrisleewilcox marked this pull request as ready for review January 25, 2024 02:15
@chrisleewilcox chrisleewilcox requested a review from a team as a code owner January 25, 2024 02:15
@github-actions github-actions bot added the Run Smoke E2E Triggers smoke e2e on Bitrise label Jan 25, 2024
Copy link
Contributor

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/85b192ee-2060-43e9-a5e4-4fcb71570c6d
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

@chrisleewilcox chrisleewilcox changed the title fix: Run tests within tests path to avoid skipping tests fix: Minimize skipping tests Jan 25, 2024
@chrisleewilcox chrisleewilcox added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jan 25, 2024
leotm
leotm previously approved these changes Jan 25, 2024
Copy link
Contributor

@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.

🚀

bitrise.yml Outdated Show resolved Hide resolved
bitrise.yml Outdated Show resolved Hide resolved
bitrise.yml Show resolved Hide resolved
chrisleewilcox and others added 2 commits January 25, 2024 08:39
add spacing for readability

Co-authored-by: LeoTM <1881059+leotm@users.noreply.github.com>
add spacing to improve readability

Co-authored-by: LeoTM <1881059+leotm@users.noreply.github.com>
@leotm leotm self-requested a review January 25, 2024 17:03
Copy link
Contributor

@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.

should be good to update branch now ^

Copy link

sonarcloud bot commented Jan 25, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@chrisleewilcox chrisleewilcox merged commit 2b42d47 into main Jan 25, 2024
26 checks passed
@chrisleewilcox chrisleewilcox deleted the test/bitrise-test-suite-folder branch January 25, 2024 17:44
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jan 25, 2024
@metamaskbot metamaskbot added the release-7.16.0 Issue or pull request that will be included in release 7.16.0 label Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E2E release-7.16.0 Issue or pull request that will be included in release 7.16.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-mobile-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants