Class gabarito.plumbing.Reporter
Class defined in:lib/plumbing/Reporter.js:6
The reporter class that describes all the events issued by the environment while running the tests.
A reporter may implement any method described here, the default implementation does nothing.
Index
Methods
begin
( env, test
)
lib/plumbing/Reporter.js:61
Issued when a test is about to begin
Parameters:-
env
<gabarito.plumbing.Environment>The environment running the tests
-
test
<String>The test name
complete
( env, results
)
lib/plumbing/Reporter.js:49
Issued when an environment has completed
Parameters:-
env
<gabarito.plumbing.Environment>The environment that has completed
-
results
<gabarito.TestResult[]>The environment's results
dispatch
( env
)
lib/plumbing/Reporter.js:126
Issued when an environment is dispatched
Parameters:-
env
<gabarito.plumbing.Environment>The environment
done
( env, results
)
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, results
)
lib/plumbing/Reporter.js:73
Issued when a test has ended
Parameters:-
env
<gabarito.plumbing.Environment>The environment running the tests
-
results
<gabarito.TestResult>The results for the test
enter
( env, test, clause
)
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
)
lib/plumbing/Reporter.js:170
Issued when an error outside a given clause happens
Parameters:-
env
<gabarito.plumbing.Environment>The environment
-
error
<Mixed>
fail
( env, test, clause, result
)
lib/plumbing/Reporter.js:112
Issued when a test clause fail
Parameters:-
env
<gabarito.plumbing.Environment>The environment running the tests
-
test
<String>The test name
-
clause
<String>The test clause
-
result
<gabarito.ClauseResult>The clause result
finish
( results
)
lib/plumbing/Reporter.js:27
Issued when the runner finishes
Parameters:-
results
<gabarito.EnvironmentResults>
init
( env, tests
)
lib/plumbing/Reporter.js:37
Issued when an environment has initialized
Parameters:-
env
<gabarito.plumbing.Environment>The environment that has initialized
-
tests
<String>The test names that will run
message
( env, args
)
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
)
lib/plumbing/Reporter.js:98
Issued when a test clause passes
Parameters:-
env
<gabarito.plumbing.Environment>The environment running the tests
-
test
<String>The test name
-
clause
<String>The test clause
-
result
<gabarito.ClauseResult>The clause result
say
( env, args
)
lib/plumbing/Reporter.js:148
Issued when an environment says something
Parameters:-
env
<gabarito.plumbing.Environment>The environment
-
args
<Mixed> (*..n)