Skip to content

Commit

Permalink
Docs: Add section about customizing RuleTester (fixes eslint#6227)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Jun 6, 2016
1 parent 2d4efbe commit 39975e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/developer-guide/working-with-plugins.md
Expand Up @@ -140,6 +140,11 @@ ruleTester.run("custom-plugin-rule", rule, {
});
```

#### Customizing RuleTester

RuleTester internally uses Mocha's `describe` and `it` methods when available to create tests for each valid and invalid case. If you use another test runner, you can override `RuleTester.describe` and `RuleTester.it` to make RuleTester compatible with it and have proper individual tests and feedback.


## Share Plugins

In order to make your plugin available to the community you have to publish it on npm.
Expand Down

0 comments on commit 39975e8

Please sign in to comment.