-
Install all required dependencies using npm (Karma, Jasmine, PHPUnit):
npm install
-
All unit tests (JavaScript and PHP) can then be run with
npm test
JavaScript tests will be run in PhantomJS by default. You can change the browser in tests-js/karma.conf.js.
To make development easier, preconfigured IntelliJ IDEA or PHPStorm project files are already in this repository.
Install the following plugins:
- PHP (if using IDEA)
- Karma
Run configurations are also provided for running of unit tests.
This plugin is published to WordPress Plugin Directory, which hosts plugins in Subversion repository.
Travis build is configured to try to publish the code to Subversion on every successful build.
It will do so only if Version tag has changed in redpen.php file.
To publish manually, you can use publish.sh
.