how to run test cases locally - OmniSharp/generator-aspnet GitHub Wiki

As you are making changes to the generators you will want to run the test cases locally to ensure they pass before committing or submitting a new PR. The test cases are mocha test cases so you'll need mocha to execute those tests.

There are a few things that need to be installed to get the test cases to run. You can install those with the following commands.

  • npm install yeoman-generator
  • npm install mocha
  • npm install chalk

After that you should be able to execute npm test to run the test cases from the generator-aspnet directory.