API Docs for: 0.1.0

Class gabarito.plumbing.ConsoleReporter

Extends: gabarito.plumbing.Reporter
Class 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:
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:
dispatch( env )
Defined in gabarito.plumbing.Reporter: lib/plumbing/Reporter.js:126

Issued when an environment is dispatched

Parameters:
done( env, results )
Defined in gabarito.plumbing.Reporter: lib/plumbing/Reporter.js:136

Issued when an environment finishes

Parameters:
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:
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:
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:
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:
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:
message( env, args )
Defined in gabarito.plumbing.Reporter: lib/plumbing/Reporter.js:159

Issued when an environment emits a message

Parameters:
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:
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:
start( )
Defined in gabarito.plumbing.Reporter but overwritten locally: lib/plumbing/ConsoleReporter.js:92

Prints a row saying that things are starting.