Miss any of our Open RFC calls?Watch the recordings here! »

dado

0.3.1 • Public • Published

Dado

NPM VERSION CODACY BADGE CODECLIMATE-TEST-COVERAGE LICENSE

NODE VERSION TRAVIS CI BUILD BUILD STATUS DEVDEPENDENCY STATUS

NPM MONTHLY NPM YEARLY

NPM GRAPH

Dado, a simple and dirty test runner.

Install

$ npm install dado [-g]

require:

var Dado  = require( 'dado' );

Run Tests

cd dado/
$ npm test

Constructor

Dado( [ Object opt ] )
// or
new Dado( [ Object opt ] )

Options

Default options are listed.

opt = {
}

Properties

 /*
  * Instance configuration object.
  */
 Dado.options : Object

Methods

Arguments within [ ] are optional.

/*
 * Run tests from specified directory, default value for path is 'test' (or './test').
 * Optionally, if Dado default position is not in 'node_modules', you can specify the
 * relative path from 'dado/lib' directory to the root dir of the module to test
 * (default relative path is * '../../../').
 * The optional callback will be executed when all test files are executed, this function
 * gets 2 args/objs: queues for collected files and stats.
 *
 * NOTE:
 * - Only files ending with '-test.js' are loaded from the specified path/dir.
 * - Every loaded file should exports a 'test' property/method that gets 2 arguments,
 *   an object with some methods for assertions and a done function that you should call
 *   for properly exiting from the test.
 */
Dado#do : function ( String test_dir_path [, String module_relative_path [, Function callback ] ] ) : undefined
 
/*
 * Reset global queues and stats objects.
 */
Dado#reset : function () : Dado

MIT License

Copyright (c) 2014-present < Guglielmo Ferri : 44gatti@gmail.com >

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Install

npm i dado

DownloadsWeekly Downloads

16

Version

0.3.1

License

MIT

Last publish

Collaborators

  • avatar