rtCamp / login-with-google

Minimal plugin which allows WordPress user to login with google.
https://wordpress.org/plugins/login-with-google/
GNU General Public License v2.0
63 stars 17 forks source link

Add unit-test #16

Closed PatelUtkarsh closed 4 years ago

PatelUtkarsh commented 5 years ago
deepaklalwani97 commented 4 years ago

@DevikVekariya The rtBot review can be dismissed as it is a false flag and the PR looks good to me and i have tested the test cases on my local all are passing.

DevikVekariya commented 4 years ago

@mrrobot47 is working for GH actions setup here and expecting 3 hours of sys work

deepaklalwani97 commented 4 years ago

@DevikVekariya I have fixed the missing code coverage which I could fix and added code-coverage ignore on lines which could not be tested with proper comments with reason.

DevikVekariya commented 4 years ago

@deepaklalwani97 I see there are many code coverage ignore blocks without comment! Please add a proper comment on that

deepaklalwani97 commented 4 years ago

@DevikVekariya Added comment/fixed ignore blocks

deepaklalwani97 commented 4 years ago

Merged #19 to develop while testing develop branch on https://deepak.dev4.rt.gw/ found an issue with redirection after successful login the site redirects to http://httpsdeepak.dev4.rt.gwwp-admin1/

deepaklalwani97 commented 4 years ago

@pooja-muchandikar Can you test the develop branch for this repo on https://deepak.dev4.rt.gw/. I have added the latest develop zip in this site and configured it with secrets. I have also added your user to the site. Let me know if you face any issues. CC: @DevikVekariya

pooja-muchandikar commented 4 years ago

@deepaklalwani97

I have tested the site with google login and works as expected with my below findings.

deepaklalwani97 commented 4 years ago

@DevikVekariya Created PR to master branch as the develop branch has been tested. #26

DevikVekariya commented 4 years ago

@deepaklalwani97 I see lots of errors from bot here https://github.com/rtCamp/wp-google-login/pull/26

deepaklalwani97 commented 4 years ago

@DevikVekariya We can ignore these errors. All these errors are from unit tests we have ignored tests folder in phpcs.xml but seem like bot does not respect phpcs.xml file

DevikVekariya commented 4 years ago

@deepaklalwani97 debug why phpcs is not being ignored from test!

I'll be able to merge only when all checks are being passed. Can't ignore it in this way.

DevikVekariya commented 4 years ago

All seems clear to release this.

Will do merge this PR https://github.com/rtCamp/wp-google-login/pull/29 and release it tomorrow morning.

cc @sagarnasit