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

Figure out how to test CLI scripts #48

Open
CodeProKid opened this issue Mar 5, 2018 · 1 comment
Open

Figure out how to test CLI scripts #48

CodeProKid opened this issue Mar 5, 2018 · 1 comment

Comments

@CodeProKid
Copy link
Collaborator

There's a few different ways to do this. We could load WP-CLI as a dependency, and just PHPUnit test like we normally would, or we could do tests in behat and do more integration tests with feature testing, like how you would test a CLI package.

I'm undecided currently, somewhat leaning towards using normal PHPUnit tests, but intrigued by how it could be done in behat as features. That's how woocommerce does it -> https://github.com/woocommerce/woocommerce/tree/master/tests/cli but not sure how it works with a CI tool.

@CodeProKid
Copy link
Collaborator Author

Was thinking about this, I think we should use codeception for tests, and then use their BDD tests to run these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant