This project is a sample of RedPen JavaScript plugin. This repository includes all the resources needed for testing RedPen validator. This repository include a plain validator in js/validator.js. The tests are included in test/validator-js-test.js. test/redpen.js is a utility script used in the testing.
RedPen requires the following software.
- Java 1.8.40 or greater
- Node.js 6.0 or greater
First, copy this repository with git clone command. Then you install the JavaScript libraries with npm install.
There are two way of running tests. One is test launching RedPen server. The other is running test without the servers.
npm run test
npm run test-with-cli