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

Ensure test failure on unexpected promise resolution #485

Merged
merged 1 commit into from Dec 19, 2018
Merged

Ensure test failure on unexpected promise resolution #485

merged 1 commit into from Dec 19, 2018

Conversation

oliversalzburg
Copy link
Contributor

@oliversalzburg oliversalzburg commented Dec 19, 2018

Platforms affected

iOS

What does this PR do?

It makes sure that the tests are failed correctly if the result is not as expected. Previously, these tests would simply time out after the Jasmine default timeout period. Now the tests will fail right away and give a better indication towards the reason.

What testing has been done on this change?

I've ran the tests.

Started
....F

Failures:
1) versions get_tool_version method should find pod version.
  Message:
    Failed: expected promise resolution
  Stack:
    Error: expected promise resolution
        at versions.get_tool_version.then.catch (/Users/oliver/cordova-ios/tests/spec/component/versions.spec.js:61:37)

@codecov-io
Copy link

Codecov Report

Merging #485 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #485   +/-   ##
=======================================
  Coverage   75.66%   75.66%           
=======================================
  Files          11       11           
  Lines        1796     1796           
=======================================
  Hits         1359     1359           
  Misses        437      437

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 1d00e60...efdccbb. Read the comment docs.

1 similar comment
@codecov-io
Copy link

codecov-io commented Dec 19, 2018

Codecov Report

Merging #485 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #485   +/-   ##
=======================================
  Coverage   75.66%   75.66%           
=======================================
  Files          11       11           
  Lines        1796     1796           
=======================================
  Hits         1359     1359           
  Misses        437      437

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 1d00e60...efdccbb. Read the comment docs.

Copy link
Contributor

@brodycj brodycj left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @oliversalzburg

@brodycj brodycj merged commit fe01e5d into apache:master Dec 19, 2018
@oliversalzburg oliversalzburg deleted the fix/promise-resolution branch December 19, 2018 17:35
erisu pushed a commit to erisu/cordova-ios that referenced this pull request Jan 16, 2019
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.

3 participants