Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 958 Bytes

contributing.md

File metadata and controls

34 lines (23 loc) · 958 Bytes

AMP Contributing Guide

Thanks for taking the time to contribute!

To clone this repository

$ git clone --recursive [email protected]:Automattic/amp-wp.git

Updating Allowed Tags And Attributes

The file class-amp-allowed-tags-generated.php has the AMP specification's allowed tags and attributes. It's used in sanitization. To update that file:

  1. cd to the root of this plugin
  2. run bash bin/amphtml-update.sh That script is intended for a Linux environment like VVV.

PHPUnit Testing

Please run these tests in an environment with WordPress unit tests installed, like VVV.

Run tests:

$ phpunit

Run tests with an HTML coverage report:

$ phpunit --coverage-html /tmp/report

When you push a commit to your PR, Travis CI will run the PHPUnit tests and sniffs against the WordPress Coding Standards.