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

Renderer Testing: fix the renderer tests so they can be run on their own #7070

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

jsut
Copy link
Contributor

@jsut jsut commented Jun 22, 2021

Type of change

  • Other

Description of change

running ./node_modules/gulp/bin/gulp.js test --file test/spec/renderer_spec.js fails without this change. The adUnits global is set by other tests, and the adloaderStub is loaded by test_index.js. When you run this file on it's own, it will fail.

- running ./node_modules/gulp/bin/gulp.js test --file test/spec/renderer_spec.js
  fails without this change. The adUnits global is set by other tests,
  and the adloaderSub is loaded by test_index.js.  When you run this
  file on it's own, it will fail.
@jsut
Copy link
Contributor Author

jsut commented Jun 22, 2021

There might be a better and/or more generic fix for this in karma.conf.maker.js. test/spec/adUnits_spec.js, test/spec/auctionmanager_spec.js and test/spec/video_spec.js all fail if you try to run them on their own.

@ChrisHuie ChrisHuie changed the title Fix the renderer tests so they can be run on their own Renderer Testing: fix the renderer tests so they can be run on their own Jun 22, 2021
@ChrisHuie ChrisHuie self-requested a review June 22, 2021 11:18
@ChrisHuie ChrisHuie self-assigned this Jun 22, 2021
@ChrisHuie ChrisHuie requested review from aleksatr and removed request for aleksatr June 25, 2021 11:00
@ChrisHuie ChrisHuie merged commit 04378c0 into prebid:master Jun 28, 2021
@jsut jsut deleted the fix-renderer-tests branch July 1, 2021 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants