1.0.2 • Published 5 years ago

mocha-tools v1.0.2

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
5 years ago

Mocha Tools

Is a collection of tools to help people with Mocha unit test writing and troubleshooting. This was created out of our need to troubleshoot unit test inter-dependency issues.

What is this repository for?

If you need to list your Mocha unit tests or troubleshoot unit test inter-dependency issues, then this is the lib for you.

How do I get set up?

Install: npm install mocha-tools --save-dev

Get a list of your Mocha unit tests: mocha-tools list <test dir>

Run each test independently: mocha-tools run-alone <test dir>

NOTE: The tools currently only support BDD style unit tests.

How to run tests

To run the unit tests: npm run test

How to test for development

The directory dummy-test is for local development and running of the commands. There are commands in the script section of the package.json for more details.

Contribution guidelines

Please write unit tests for any code you contribute. Examples exist in the test folder.

All code is reviewed before being merged to master.

License

This code is under the MIT license.

1.0.2

5 years ago

1.0.1

5 years ago