Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: A wp-cli command similar to scaffold plugin-tests #114

Open
sudar opened this issue Dec 5, 2017 · 5 comments
Open

Feature Request: A wp-cli command similar to scaffold plugin-tests #114

sudar opened this issue Dec 5, 2017 · 5 comments
Assignees
Labels
Enhancement New feature proposal or pull request

Comments

@sudar
Copy link
Contributor

sudar commented Dec 5, 2017

This will make it easy for people to setup wp_mock for plugins and will also reduce the barrier to entry.

@ericmann
Copy link
Collaborator

ericmann commented Dec 5, 2017

I was thinking about this the other day in the context of #49, actually.

Do you think a WP CLI script would be best or perhaps a Composer routine that sets things up both for WP_Mock and for the core test framework? Or maybe both?

@sudar
Copy link
Contributor Author

sudar commented Dec 5, 2017

I feel that a WP CLI script would be best, especially if it can set things up for both WP_Mock and core test framework.

The main reasons why I feel this way is because a) Core tests already use it (one less thing to learn) b) We need only the initial scaffolding.

@ericmann ericmann added Enhancement New feature proposal or pull request UX Improvement and removed Discussion labels Dec 5, 2017
@ericmann ericmann self-assigned this Dec 5, 2017
@ericmann
Copy link
Collaborator

ericmann commented Dec 5, 2017

That works for me. The question the becomes, how do you set it up?

Would this need to be a separate package that you install globally so WP CLI can bootstrap things? I don't thing it would necessarily need to be a part of WP_Mock itself ...

@sudar
Copy link
Contributor Author

sudar commented Dec 6, 2017

Yes, having a seperate repo that you can install as a package in wp-cli makes most sense. It would be better to seperate WP_Mock and the WP Cli package repo.

@sudar
Copy link
Contributor Author

sudar commented Dec 9, 2017

@ericmann If you already have a repo where you are working on the wp-cli command then please let me. I am also willing to contribute to that repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature proposal or pull request
Projects
None yet
Development

No branches or pull requests

4 participants