Skip to content

Figure out how to test CLI scripts #48

@CodeProKid

Description

@CodeProKid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions