pantheon-systems / google-map-gutenberg-block

MIT License
54 stars 6 forks source link

Automated Tests/CI #10

Open stevector opened 6 years ago

stevector commented 6 years ago

@ataylorme, do you have thoughts on what a CI process would/should look like for this plugin?

ataylorme commented 6 years ago

Initial thoughts are Behat for the admin to test inserting/configuring the block. Then run visual regression testing on the front end against known good screenshots of the result.

stevector commented 6 years ago

Sounds good. Since that'll need Behat with JavaScript let's consider https://packagist.org/packages/dmore/behat-chrome-extension

It'll allow for headless Chrome in CI and headed Chrome for a cool demo.

Do you have any interest in using Jest for unit tests the way Gutenberg itself does? https://github.com/WordPress/gutenberg/blob/master/components/form-toggle/test/index.js

ataylorme commented 6 years ago

The Behat Chrome Extension looks cool. I'm not against using Jest but haven't used it before so there would be a learning curve. We can discuss details if this makes it into a sprint.