Add support for returning run details for reporting randomness
[#92249258]
This commit is contained in:
@@ -248,4 +248,12 @@ describe("JsApiReporter", function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('#runDetails', function() {
|
||||||
|
it('should have details about the run', function() {
|
||||||
|
var reporter = new j$.JsApiReporter({});
|
||||||
|
reporter.jasmineDone({some: {run: 'details'}});
|
||||||
|
expect(reporter.runDetails).toEqual({some: {run: 'details'}});
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ getJasmineRequireObj().JsApiReporter = function() {
|
|||||||
|
|
||||||
this.started = false;
|
this.started = false;
|
||||||
this.finished = false;
|
this.finished = false;
|
||||||
|
this.runDetails = {};
|
||||||
|
|
||||||
this.jasmineStarted = function() {
|
this.jasmineStarted = function() {
|
||||||
this.started = true;
|
this.started = true;
|
||||||
@@ -20,8 +21,9 @@ getJasmineRequireObj().JsApiReporter = function() {
|
|||||||
|
|
||||||
var executionTime;
|
var executionTime;
|
||||||
|
|
||||||
this.jasmineDone = function() {
|
this.jasmineDone = function(runDetails) {
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
|
this.runDetails = runDetails;
|
||||||
executionTime = timer.elapsed();
|
executionTime = timer.elapsed();
|
||||||
status = 'done';
|
status = 'done';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user