Class gabarito.plumbing.NodeEnvironment
Extends: gabarito.plumbing.EnvironmentClass defined in:
lib/plumbing/NodeEnvironment.js:16
The NodeEnvironment runs the tests under the node-js itself. It loades the files using the require mechanism, but it deletes them from the node's cache beforehand.
gabarito.plumbing.NodeEnvironment
( [gabarito], [require]
)
lib/plumbing/NodeEnvironment.js:16
Parameters:
-
[gabarito]
<gabarito.Gabarito>A gabarito instance
-
[require]
<Module/require>The module.require function
Index
Methods
dispatch
( files, reporters, done
)
Defined in gabarito.plumbing.Environment:
lib/plumbing/Environment.js:35
Method called by the runner that receives the files to be loaded, the reporters that should receive all events and the callback function that must be called passing all the results at the end of things.
Parameters:-
files
<String>The files list
-
reporters
<gabarito.plumbing.Reporter[]> -
done
<Function>
String
Defined in gabarito.plumbing.Environment:
getName
(
)
Defined in gabarito.plumbing.Environment:
lib/plumbing/Environment.js:23
The environment's name
Returns: <String>