Forums

Anyone unit-testing his plugins? (5 posts)

  1. 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

  2. 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.

  3. johncoswell
    Member
    Posted 2 years ago #

    I changed my GitHub name, so new link: MockPress

  4. sampablokuper
    Member
    Posted 2 years ago #

    johncoswell, MockPress looks good. Kudos for creating it.

  5. mdelange
    Member
    Posted 2 years ago #

    @johncoswell: thanks a lot, much appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic