wpengine / wp-graphql-content-blocks

Plugin that extends WPGraphQL to support querying (Gutenberg) Blocks as data

Home Page:https://faustjs.org/docs/gutenberg/wp-graphql-content-blocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Content Blocks: Add configuration for running tests locally

ChrisWiegman opened this issue · comments

As maintainers of the Content Blocks plugin, it would be nice to be able to easily run the test suites locally, to get faster feedback and improve velocity. Having to wait for GitHub to run the tests is slower and potentially wastes computing resources.

Acceptance Criteria

  • A Docker config is created for running phpunit tests
  • A Makefile is created to run the phpunit tests within Docker
  • Documentation is written explaining how to run the tests locally (can go in README.md for now)
  • The npm run test-e2e command works properly, or is replaced with something that does. (It currently fails and appears to require additional steps)

Notes

  • We have a similar setup in the AtlasWP and ACM plugins.

Closing as we do have a way to do this, we can further automate this later if needed.