Skip to content

Using wp_mocks together with WordPress core Unit tests #49

Open
@sudar

Description

@sudar

I know that wp_mock and WordPress core Unit tests work differently and it may not even be possible to have them run together.

I use both and like both. But there are certain tests for which I would prefer wp_mock and certain tests for which I would prefer WordPress core Unit tests. But unfortunately right now there is no way to configure both of them for a single plugin. You have to pick one and stick with it even if you can group all the 'mock' tests using a separate testsuite or phpunit group and invoke the separately from phpunit.

What I am suggesting is to have a way to setup both of them together for a plugin and invoke the appropriate framework and their tests using either phpunit's group or testsuite feature.

I know that there was some recent discussion about it and I am interested in knowing everyone's thoughts on it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions