title: How to get WebStorm to run ESLint ruletester efficiently
body: <p>I am writing an ESLint plugin and I have been testing with eslint.RuleTester.  This is okay, I know how to configure their test options argument but I always have to run the entire test file.</p>
  <p>here is an example test file:</p>
  <pre class="lang-js prettyprint-override"><code>const {RuleTester} = require('eslint');
  const rulester = new RuleTester({setup});
  const rule = require ('myrule');
  
  //this works also but i have to run the entire file (and thus all the tests)
  ruleTester.run('myruletest',rule,{invalid,valid}); 
  </code></pre>
  <p>Normally, when I install a test runner I get a run/configuration for it and handy <code>play</code>⏯ and <code>debug</code> buttons in line with each test. As I write more tests (particularly in the same file) it would be handy to quickly click a <code>=&gt;</code> beside a test and run just that single test.</p>
  <p>If I try to call <code>ruletester.run</code> from a <code>mocha.it</code> callback it will not report the test correctly (and definitely cannot debug / step into it).
  e.g. this does not work well</p>
  <pre class="lang-js prettyprint-override"><code>const mocha = require('mocha');
  const {RuleTester} = require('eslint');
  const rulester = new RuleTester({setup});
  const rule = require ('myrule');
  
  // nice play button and custom run configruation but not honest test feeback
  it('mytest', ()=&gt;{
     // it'll run this but will not report correctly -- `it` says it always passes
     ruleTester.run('myruletest, rule, {invalid,valid});
  });
  
  
  it('mytest', async ()=&gt;{
    // async is of no help
     await ruleTester.run('myruletest, rule, {invalid,valid});
  });
  
  //this still works also but then i have to run the entire file (and thus all the tests)
  ruleTester.run('myruletest',rule,{invalid,valid}); 
  
  </code></pre>
  <p>So how do I tell WebStorm to either</p>
  <ul>
  <li>recognize <code>eslint.RuleTester</code> as a testrunner</li>
  <li>properly call and instance of RuleTester from my own testrunner?</li>
  </ul>