Class gabarito.plumbing.JUnitXmlReporter
Extends: gabarito.plumbing.ReporterClass defined in:
lib/plumbing/JUnitXmlReporter.js:23
The JUnitXmlReporter produces a XML file with the test results that has the jUnit format. Useful to use along with your favorite CI solution.
gabarito.plumbing.JUnitXmlReporter
( file, name, [xmlbuilder], [fs], [nowGiver]
)
lib/plumbing/JUnitXmlReporter.js:23
Parameters:
-
file
<String>The file to write the xml itself
-
name
<String>The name of the jUnit report
-
[xmlbuilder]
<XmlBuilder> -
[fs]
<FileSystem> -
[nowGiver]
<Function>
Index
Methods
begin
( env, test
)
Defined in gabarito.plumbing.Reporter:
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
)
Defined in gabarito.plumbing.Reporter:
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
)
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, results
)
Defined in gabarito.plumbing.Reporter:
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
)
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:
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
)
Defined in gabarito.plumbing.Reporter:
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
)
Defined in gabarito.plumbing.Reporter but overwritten locally:
lib/plumbing/JUnitXmlReporter.js:130
Produces the XML itself
Parameters:-
results
<gabarito.EnvironmentResults>
init
( env, tests
)
Defined in gabarito.plumbing.Reporter:
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
)
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:
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
)
Defined in gabarito.plumbing.Reporter:
lib/plumbing/Reporter.js:148
Issued when an environment says something
Parameters:-
env
<gabarito.plumbing.Environment>The environment
-
args
<Mixed> (*..n)
start
(
)
Defined in gabarito.plumbing.Reporter:
lib/plumbing/Reporter.js:19
Issued when the runner starts