Skip to content

Refactor integration tests to use JSON comparison#439

Merged
timkimadobe merged 6 commits intoadobe:devfrom
timkimadobe:refactor-integration-tests-aeptestutils
Jan 31, 2024
Merged

Refactor integration tests to use JSON comparison#439
timkimadobe merged 6 commits intoadobe:devfrom
timkimadobe:refactor-integration-tests-aeptestutils

Conversation

@timkimadobe
Copy link
Copy Markdown
Contributor

Description

This PR updates the integration tests to use the latest features from the JSON comparison tool in AEPTestUtils. Specifically:

  1. testSendEvent_with_NO_priorState_receivesExpectedStateStoreEventHandle is updated to strictly validate collection sizes (which was not possible before pathOptions was available)
  2. Updated formatting for JSON strings:
    1. Removing raw string format where not needed
    2. Improving JSON object formatting: smaller indents, keys alphabetized

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.

…ntHandle to be able to strictly validate collection counts

Update formatting, removing raw strings where not required
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 10, 2024

Codecov Report

Merging #439 (b2554e5) into dev (4b50f2c) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #439   +/-   ##
=======================================
  Coverage   96.47%   96.47%           
=======================================
  Files          27       27           
  Lines        1730     1730           
=======================================
  Hits         1669     1669           
  Misses         61       61           

Copy link
Copy Markdown
Contributor Author

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

Thanks for the review @emdobrin! Updated based on feedback

@timkimadobe timkimadobe requested a review from emdobrin January 27, 2024 01:12
@emdobrin
Copy link
Copy Markdown
Contributor

Looks good to me, make sure you rebase over dev changes before merging

@timkimadobe timkimadobe merged commit a2b6fb5 into adobe:dev Jan 31, 2024
@timkimadobe timkimadobe deleted the refactor-integration-tests-aeptestutils branch January 31, 2024 03:10
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 and integration tests to use new test utils

3 participants