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

Improve Qunit tests #106

Merged
merged 14 commits into from
Jul 3, 2019
Merged

Improve Qunit tests #106

merged 14 commits into from
Jul 3, 2019

Conversation

adamsilverstein
Copy link
Collaborator

@adamsilverstein adamsilverstein commented Jul 2, 2019

Summary

Fix QUnit test on travis-ci.
Tests was running asynchronously and travis is not failing when the test faild.

Addresses #111

Relevant technical choices

The issue where the build wasn't failing when it should. This was a known issue with the node-qunit-phantomjs package (jonkemp/node-qunit-phantomjs#26) and seems to be due to the proposed usage running the tests asynchronously. This causes the gulp task to finish "successfully" before the tests finish running. The solution here was to change it to run in a synchronous way.

Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 4.7 and PHP 5.4.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@aaemnnosttv
Copy link
Collaborator

@adamsilverstein my changes can be summarized as:

Currently the build is failing due to visual tests.

@adamsilverstein adamsilverstein changed the title [WIP] Add/qunit tests Improve Qunit tests Jul 3, 2019
@adamsilverstein adamsilverstein marked this pull request as ready for review July 3, 2019 12:41
@bjackson27 bjackson27 added P0 High priority Type: Bug Something isn't working labels Jul 3, 2019
@bjackson27 bjackson27 added this to the 1.0.0-beta.1.0.1 milestone Jul 3, 2019
@bjackson27 bjackson27 mentioned this pull request Jul 3, 2019
@googlebot
Copy link

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Looks good!

@felixarntz felixarntz merged commit 3290fe2 into develop Jul 3, 2019
@felixarntz felixarntz removed P0 High priority Type: Bug Something isn't working labels Jul 3, 2019
@felixarntz felixarntz removed this from the 1.0.0-beta.1.0.1 milestone Jul 3, 2019
@felixarntz felixarntz deleted the add/qunit-tests branch July 4, 2019 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants