nutsmuggler
Member
Posted 3 years ago #
Hello folks,
I was wondering if someone applies unit-testing technique to his plugins code. I know about testing in Ruby ON Rails, but I am a complete noob as far as PHP unit testing is concerned. Can anyone give me a hint? Where do I start from, etc?
Davide
johncoswell
Member
Posted 2 years ago #
I'm doing unit testing on my plugins. One has a full set of tests, one I'm completely refactoring for proper unit testability, and one has no tests and really should have more than that. :) I'm working on a full WordPress mock library so that one can simulate WordPress and set up test expectations in your unit testing framework. Try it out and let me know what you think: MockPress.
johncoswell
Member
Posted 2 years ago #
I changed my GitHub name, so new link: MockPress
sampablokuper
Member
Posted 2 years ago #
johncoswell, MockPress looks good. Kudos for creating it.
mdelange
Member
Posted 2 years ago #
@johncoswell: thanks a lot, much appreciated!