Changes between Initial Version and Version 1 of Ticket #36292, comment 14
- Timestamp:
- 05/15/2016 11:36:55 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36292, comment 14
initial v1 2 2 > You'll be surprised that my plugins are the very few open source WordPress plugins on the entire web that are tested '''without''' loading WordPress. Every WordPress class and function and hook is mocked. 3 3 4 The problem with that approach is that is makes the assumption that all of your mocks behave exactly as WordPress would behave, and given the combinatorial numberof functions and hooks that is a statistical impossibility especially when you consider that behavior changes with each release of WordPress.4 The problem with that approach is that is makes the assumption that all of your mocks behave exactly as WordPress would behave, and given the combinatorial amount of functions and hooks that is a statistical impossibility especially when you consider that behavior changes with each release of WordPress. 5 5 6 6 Yes, what you have is better than not having any testing -- by far -- but it is still far from perfect.