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

KRKPD-1083: Refactor and expand testing #31

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Conversation

klawil
Copy link

@klawil klawil commented Apr 18, 2024

Type of change

  • Refactoring (no functional changes, no api changes)

Description of change

See here for easily readable map of old and new tests

  • Refactored the tests for the Kargo bid adapter. The tests were refactored to expand coverage of edge cases and invalid data being provided.
  • Updates from 29 defined tests to 81 for more detailed unit tests.

@nickllerandi nickllerandi changed the title Kargo: Refactor and expand testing KRKPD-1083: Refactor and expand testing Apr 19, 2024
@nickllerandi
Copy link

nickllerandi commented Apr 22, 2024

Going through this one function/section at a time:

  • isBidRequestValid
  • buildRequests (revisit after addressing device h/w test)
  • interpretResponse
  • getUserSyncs
  • supportedMediaTypes
  • onTimeout

@nickllerandi nickllerandi merged commit 7ae1bd5 into master Apr 29, 2024
@nickllerandi nickllerandi deleted the kargo-testing-refactor branch April 29, 2024 15:29
nickllerandi added a commit that referenced this pull request Apr 30, 2024
* KRKPD-1083: Refactor and expand testing (#31)

* Refactor the Kargo adapter testing to be more comprehensive and include testing of invalid inputs

* Fix the window size test to pull data from the browser instead of hardcoded values

* Remove a duplicate test

* unhook triggerPixel after tests

* fixes circleci failure

* Update the localStorage non-functional test

In FireFox, having localStorage.getItem throw an error isn't working so the test was updated to not have a valid localStorage
value to pass on FireFox.

* Restore the bidderSettings following testing

---------

Co-authored-by: William Klausmeyer <[email protected]>
Co-authored-by: “Nick <“nick.llerandi”@kargo.com>
Co-authored-by: William Klausmeyer <[email protected]>
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.

4 participants