npm.io
2.3.0 • Published 10 years ago

mocha-directory

Licence
MIT
Version
2.3.0
Deps
2
Vulns
0
Weekly
0

mocha-directory

Allows you to organize your BDD mocha test suites as directories

Usage

File tree:

  • tests/
    • index.js
    • Test Suite/
      • test.js

tests/Test Suite/test.js:

it( 'should be a test', function() {
  // Test
} );

index.js

require( 'mocha-directory' )();

Command:

mocha tests/

Output:

Test Suite
    ✓ should be a test

  1 passing (9ms)

Keywords