Skip to content

Complete PHP unit testing and linting infrastructure #28

@felixarntz

Description

@felixarntz

The repository already contains the foundation for PHP unit testing and linting, particularly the latter already works out of the box right now. This issue is about completing the setup so that the repository offers easy PHP unit testing capabilities that can be run locally and in CI (GitHub actions) without separately setting up WordPress or a MySQL database.

The suggested approach is to mostly copy how Gutenberg does this, as it allows us to rely on an established approach and reuse the @wordpress/env package - this way we don't need to worry about most of the complexities, plus we get a development environment for the plugin out of the box.

For the scope of this issue, linting and testing of non-PHP code (e.g. JS, CSS) should be excluded. This is to keep things simple and since PHP linting and test coverage is the most crucial for this plugin initially, since the plugin at its foundation is PHP, and we don't have any JS or CSS code yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssues for the overall performance plugin infrastructure[Type] EnhancementA suggestion for improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions