Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (13 sloc) 542 Bytes

Testing your plugin

Testing your plugin locally

Testing your plugin on your book before publishing it is possible using npm link.

In the plugin's folder, run:

$ npm link

Then in your book's folder:

$ npm link gitbook-plugin-<plugin's name>

Unit testing on Travis

gitbook-tester makes it easy to write Node.js/Mocha unit tests for your plugins. Using, tests can be run on each commits/tags.