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

Remove Edge Bridge Functional Test Utils to use TestUtils Classes #83

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

cacheung
Copy link
Contributor

Remove Edge Bridge Functional Test Utils to use TestUtils TestHelper and MockNetworkServices.
Remove flatten Map usages in the functional tests.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Remove Edge Bridge Functional Test Utils to use TestUtils
@timkimadobe timkimadobe changed the base branch from main to dev June 18, 2024 21:54
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.00%. Comparing base (af49484) to head (7e71b31).
Report is 69 commits behind head on dev.

Additional details and impacted files
@@              Coverage Diff              @@
##                dev      #83       +/-   ##
=============================================
+ Coverage     71.01%   96.00%   +24.99%     
- Complexity        0       48       +48     
=============================================
  Files             5        4        -1     
  Lines           138      150       +12     
  Branches          9       29       +20     
=============================================
+ Hits             98      144       +46     
+ Misses           32        6       -26     
+ Partials          8        0        -8     
Flag Coverage Δ
-tests 96.00% <ø> (?)
functional-tests ?
unit-tests ?

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

see 3 files with indirect coverage changes

Copy link
Contributor

@timkimadobe timkimadobe left a comment

Choose a reason for hiding this comment

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

Thank you @cacheung! Added some feedback

Incorporate review comments
@cacheung
Copy link
Contributor Author

@timkimadobe thanks for the review, the PR is updated.

Copy link
Contributor

@timkimadobe timkimadobe left a comment

Choose a reason for hiding this comment

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

Thank you for all the updates @cacheung! Just one small item

" }" +
" ]" +
"}";

assertEquals(1, networkRequests.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we move this line to be above the declaration for expected, so its right after the getNetworkRequestsWith line?

Move the order of code
@cacheung cacheung merged commit 65807f0 into adobe:dev Jun 20, 2024
8 checks passed
@cacheung cacheung deleted the testUtilConvert branch June 20, 2024 00:17
@emdobrin emdobrin linked an issue Jun 20, 2024 that may be closed by this pull request
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.

Refactor functional tests to use new test utils
3 participants