blank-theme icon indicating copy to clipboard operation
blank-theme copied to clipboard

Php Unit test case setup

Open DevikVekariya opened this issue 6 years ago • 6 comments

  • Create a setup for Php Unit Tests along with the documentation.

Acceptance Criteria:

  • Each class and its method should pass though the Php Unit test case
  • If any of the methods is ignored then, it should have proper docs with a reason to ignore it.
  • It should have detailed documentation for the local setup of Unit tests and how to run it locally.

DevikVekariya avatar Jan 11 '20 06:01 DevikVekariya

@DevikVekariya

I'm assuming it will take 3-4 days. I'll try to finish as soon as possible. I've considered some extra buffer, because working for the first time.

umeshnevase avatar Jan 15 '20 06:01 umeshnevase

@kiranpotphode I wanted to split this issue between multiple folks.

  • Create a new branch dev-unit-test from master.
  • Create a new branch from the dev-unit-test to write the test case
  • Setup the unit tests from https://github.com/rtCamp/wp-google-login/pull/19
  • Raise the PR from your test-case branch to dev-unit-test
  • Make sure that we'll have one PR from dev-unit-test to master for all together

  • [x] Setup the unit tests from https://github.com/rtCamp/wp-google-login/pull/19 => @kiranpotphode Please add and merge ☝️above setup in this repo , so multiple folks can work on same parallely
  • [ ] classes/*.php => @kiranpotphode
  • [ ] helpers/*.php => ~@thrijith~ @kiranpotphode
  • [ ] traits/*.php => ~@thrijith~ @kiranpotphode
  • [ ] Readme update => @kiranpotphode
  • [ ] Add GH pipelines for unit-tests => @deepaklalwani97

Assign PRs to @deepaklalwani97 for the Review

DevikVekariya avatar Jan 22 '20 07:01 DevikVekariya

@kiranpotphode Can you merge this branch #45 to your branch with PHPUnit configuration and close this PR. As master branch does not contain a unit test setup and we cannot merge it without checks passing.

deepaklalwani97 avatar Jan 24 '20 13:01 deepaklalwani97

@deepaklalwani97

Raise the PR from your test-case branch to dev-unit-test

Merge your PR to dev-unit-test, then all will pull dev-unit-test to their working branch.

DevikVekariya avatar Jan 24 '20 13:01 DevikVekariya

Merged to dev-unit-test

deepaklalwani97 avatar Jan 24 '20 14:01 deepaklalwani97

@juhi123 The dev-unit-test branch needs to be QA tested before we can merge it to develop. Please test the dev-unit-test branch and add your findings.

deepaklalwani97 avatar Apr 01 '20 13:04 deepaklalwani97