Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.5 KB

CONTRIBUTING.md

File metadata and controls

36 lines (23 loc) · 1.5 KB

Contributing

Contributions are greatly appreciated. You can help in several ways:

Requirements & Recommendations

When contributing code specifically, please keep the following in mind:

This project provides workflows for:

  • running integration tests (using PHPUnit)
  • checking coding and documentation standards (using PHPCodeSniffer).

It is also integrated with Travis-CI to ensure those always pass.

PHPUnit and PHPCS Workflows

It is recommended to run integration tests and PHPCodeSniffer locally before committing, to check in advance that your changes do not cause unexpected issues. Here is how you can do that:

  • composer install: Set up all plugin dependencies
  • vendor/bin/phpunit: Run the integration tests.
  • vendor/bin/phpcs: Check against the WordPress Coding Standards.

Writing Integration Tests

  • Integration tests go into the tests/integration/tests directory.
  • File names must be prefixed with test-.
  • Each test class must extend the WPMN_UnitTestCase class.