Title: Anyone unit-testing his plugins?
Last modified: August 19, 2016

---

# Anyone unit-testing his plugins?

 *  [nutsmuggler](https://wordpress.org/support/users/nutsmuggler/)
 * (@nutsmuggler)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/anyone-unit-testing-his-plugins/)
 * 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

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [johncoswell](https://wordpress.org/support/users/johncoswell/)
 * (@johncoswell)
 * [17 years ago](https://wordpress.org/support/topic/anyone-unit-testing-his-plugins/#post-1029789)
 * 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](http://github.com/johncoswell/mockpress/tree/master).
 *  [johncoswell](https://wordpress.org/support/users/johncoswell/)
 * (@johncoswell)
 * [17 years ago](https://wordpress.org/support/topic/anyone-unit-testing-his-plugins/#post-1029790)
 * I changed my GitHub name, so new link: [MockPress](http://github.com/johnbintz/mockpress/tree/master/)
 *  [sampablokuper](https://wordpress.org/support/users/sampablokuper/)
 * (@sampablokuper)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/anyone-unit-testing-his-plugins/#post-1029824)
 * johncoswell, MockPress looks good. Kudos for creating it.
 *  [mdelange](https://wordpress.org/support/users/mdelange/)
 * (@mdelange)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/anyone-unit-testing-his-plugins/#post-1029851)
 * [@johncoswell](https://wordpress.org/support/users/johncoswell/): thanks a lot,
   much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Anyone unit-testing his plugins?’ is closed to new replies.

 * 4 replies
 * 4 participants
 * Last reply from: [mdelange](https://wordpress.org/support/users/mdelange/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/anyone-unit-testing-his-plugins/#post-1029851)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
