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

Upgrade to karma-jasmine 5.1.0 and fix unit tests #5503

Merged
merged 9 commits into from
Jul 15, 2022

Conversation

ozyx
Copy link
Contributor

@ozyx ozyx commented Jul 13, 2022

Closes #5405

Describe your changes:

Upgrade karma-jasmine version to 5.1.0 and update unit tests to be compatible.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Unit tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Changes appear not to be breaking changes?
  • Appropriate unit tests included?
  • Code style and in-line documentation are appropriate?
  • Commit messages meet standards?
  • Has associated issue been labelled unverified? (only applicable if this PR closes the issue)
  • Has associated issue been labelled bug? (only applicable if this PR is for a bug fix)

@codecov
Copy link

codecov bot commented Jul 13, 2022

Codecov Report

Merging #5503 (8d11863) into master (0062191) will increase coverage by 0.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5503      +/-   ##
==========================================
+ Coverage   53.25%   53.46%   +0.21%     
==========================================
  Files         594      594              
  Lines       22684    22684              
  Branches     2049     2049              
==========================================
+ Hits        12080    12128      +48     
+ Misses      10028     9980      -48     
  Partials      576      576              
Flag Coverage Δ *Carryforward flag
e2e-ci 37.56% <ø> (+5.83%) ⬆️
e2e-full 46.91% <ø> (ø) Carriedforward from 0062191
unit 50.15% <ø> (+0.06%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
src/plugins/imagery/components/ImageryView.vue 37.12% <0.00%> (-0.70%) ⬇️
src/plugins/gauge/components/Gauge.vue 61.72% <0.00%> (-0.62%) ⬇️
src/ui/components/ObjectView.vue 47.54% <0.00%> (+1.09%) ⬆️
src/api/objects/InMemorySearchProvider.js 88.50% <0.00%> (+1.14%) ⬆️
src/ui/router/Browse.js 93.15% <0.00%> (+1.36%) ⬆️
src/plugins/condition/ConditionManager.js 50.66% <0.00%> (+1.77%) ⬆️
example/generator/GeneratorProvider.js 69.56% <0.00%> (+2.17%) ⬆️
src/api/telemetry/TelemetryCollection.js 76.95% <0.00%> (+3.91%) ⬆️
src/plugins/imagery/mixins/imageryData.js 91.12% <0.00%> (+4.03%) ⬆️
src/ui/inspector/Inspector.vue 75.00% <0.00%> (+8.33%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0062191...8d11863. Read the comment docs.

@unlikelyzero unlikelyzero self-requested a review July 14, 2022 21:53
unlikelyzero and others added 8 commits July 14, 2022 16:20
* Installed gauge plugin by default
* Make gauge part of standard install in e2e suite and add restrictednotebook

Co-authored-by: Andrew Henry <[email protected]>
* Rename stacked plot interceptor and move to folder

Co-authored-by: Andrew Henry <[email protected]>
* Fix timer test

* be explicit about the warnings text

* add full suite to CI to enable CircleCI Checks

* add back in devtool=false for CI env so firefox tests run

* add framework suite

* Don't install webpack HMR in CI

* Fix playwright version installs

* exclude HMR if running tests in any environment

- use NODE_ENV=TEST to exclude webpack HMR

- deparameterize some of the playwright configs

* use lower-case 'test'

* timer hover fix

* conditionally skip for firefox due to missing console events

* increase timeouts to give time for mutation

* no need to close save banner

* remove devtool setting

* revert

* update snapshots

* disable video to save some resources

* use one worker

* more timeouts :)

* Remove `browser.close()` and `page.close()` as it was breaking other tests

* Remove unnecessary awaits and fix func call syntax

* Fix image reset test

* fix restrictedNotebook tests

* revert playwright-ci.config settings

* increase timeout for polling imagery test

* remove unnecessary waits

* disable notebook lock test for chrome-beta as its unreliable

- remove some unnecessary 'wait for save banner' logic

- remove unused await

- mark imagery test as slow in chrome-beta

* LINT!! *shakes fist*

* don't run full e2e suite per commit

* disable video in all configs

* add flakey zoom comment

* exclude webpack HMR in non-development modes

Co-authored-by: Jesse Mazzella <[email protected]>
Co-authored-by: Jesse Mazzella <[email protected]>
@ozyx ozyx force-pushed the mct5405-update-unit-tests branch from 7fc7a24 to ef49a6e Compare July 14, 2022 23:32
@ozyx
Copy link
Contributor Author

ozyx commented Jul 14, 2022

@unlikelyzero ...alright. pretty sure I rebased this correctly.

@unlikelyzero unlikelyzero merged commit 0e1cc5d into master Jul 15, 2022
@unlikelyzero unlikelyzero deleted the mct5405-update-unit-tests branch July 15, 2022 00:16
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.

[Unit tests] Update unit tests to match new describe() and it() syntax checks
3 participants