Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.11 KB

CONTRIBUTING.md

File metadata and controls

38 lines (20 loc) · 1.11 KB

Build Status

Contributing to Extended CPTs

Code contributions and bug reports are very welcome. These should be submitted through the GitHub repository. Development happens in the develop branch, and any pull requests should be made against that branch please.

Setting up Locally

If you want to contribute to Extended CPTs, you should install the developer dependencies in order to run the tests.

Prerequisites

Setup

  1. Install the PHP dependencies:

    composer install
    
  2. Check the MySQL database credentials in the tests/.env file and amend them if necessary.

Running the Tests

To run the whole test suite which includes PHPUnit and linting:

composer test

To run just the PHPUnit tests:

composer test:ut

To run just the code sniffer:

composer test:cs