Class gabarito.plumbing.ConsoleReporter
Extends: gabarito.plumbing.ReporterClass defined in:
lib/plumbing/ConsoleReporter.js:33
The console reporter prints the gabarito events to the node's console with colors and what-not.
gabarito.plumbing.ConsoleReporter( [console], [nowGiver] )
lib/plumbing/ConsoleReporter.js:33
Parameters:
-
[console]<Console> -
[nowGiver]<Function>
Index
Methods
begin( env, test )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:167
Prints a row stating which test is about to be verified.
Parameters:-
env<gabarito.plumbing.Environment> -
test<String>
complete( env, results )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:209
Prints a summary for the environment when it has completed.
Parameters:-
env<gabarito.plumbing.Environment> -
results<gabarito.TestResult[]>
dispatch( env )
Defined in gabarito.plumbing.Reporter:
lib/plumbing/Reporter.js:126
Issued when an environment is dispatched
Parameters:-
env<gabarito.plumbing.Environment>The environment
done( env, results )
Defined in gabarito.plumbing.Reporter:
lib/plumbing/Reporter.js:136
Issued when an environment finishes
Parameters:-
env<gabarito.plumbing.Environment>The environment
-
results<gabarito.EnvironmentResult>The results for the environment
end( env, test, results )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:184
Prints a small summary for the test that has ended.
Parameters:-
env<gabarito.plumbing.Environment> -
test<String> -
results<gabarito.TestResult>
enter( env, test, clause )
Defined in gabarito.plumbing.Reporter:
lib/plumbing/Reporter.js:85
Issued when a test clause is about to be run
Parameters:-
env<gabarito.plumbing.Environment>The environment running the tests
-
test<String>The test name
-
clause<String>The test clause
error( env, error )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:297
Prints a message stating that the environment issued an error and prints the error itself in red.
Parameters:-
env<gabarito.plumbing.Environment>The environment
-
error<Mixed>
fail( env, test, clause, result )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:261
Prints a red line stating that the test clause has failed.
Parameters:-
env<gabarito.plumbing.Environment> -
test<String> -
clause<String> -
result<gabarito.ClauseResult>
finish( results )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:104
Prints a small summary when things have finished showing the test results.
Parameters:-
results<gabarito.EnvironmentResults>
init( env, tests )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:146
Prints a row stating that that n tests will be verified.
Parameters:-
env<gabarito.plumbing.Environment> -
tests<String>
message( env, args )
Defined in gabarito.plumbing.Reporter:
lib/plumbing/Reporter.js:159
Issued when an environment emits a message
Parameters:-
env<gabarito.plumbing.Environment>The environemnt
-
args<Mixed> (*..n)
pass( env, test, clause, result )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:244
Prints a green line stating that the test clause has passed
Parameters:-
env<gabarito.plumbing.Environment> -
test<String> -
clause<String> -
result<gabarito.ClauseResult>
say( env, args )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:280
Prints the environment's name and every argument on a new line.
Parameters:-
env<gabarito.plumbing.Environment> -
args<String> (*..n)
start( )
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/ConsoleReporter.js:92
Prints a row saying that things are starting.