dwf/rva: added JSONReporter
This commit is contained in:
17
lib/json_reporter.js
Normal file
17
lib/json_reporter.js
Normal file
@@ -0,0 +1,17 @@
|
||||
JasmineReporters.JSON = function () {
|
||||
var that = {
|
||||
results: {},
|
||||
|
||||
addResults: function (results) {
|
||||
that.results = results;
|
||||
},
|
||||
|
||||
report: function () {
|
||||
return Object.toJSON(that.results);
|
||||
}
|
||||
}
|
||||
return that;
|
||||
}
|
||||
|
||||
Jasmine.reporter = JasmineReporters.JSON();
|
||||
|
||||
Reference in New Issue
Block a user