Add support for returning run details for reporting randomness

[#92249258]
This commit is contained in:
Gregg Van Hove
2015-11-04 12:05:29 -08:00
parent d2f2e2b870
commit c1ab3c9cbe
2 changed files with 11 additions and 1 deletions

View File

@@ -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'}});
});
});
});

View File

@@ -11,6 +11,7 @@ getJasmineRequireObj().JsApiReporter = function() {
this.started = false;
this.finished = false;
this.runDetails = {};
this.jasmineStarted = function() {
this.started = true;
@@ -20,8 +21,9 @@ getJasmineRequireObj().JsApiReporter = function() {
var executionTime;
this.jasmineDone = function() {
this.jasmineDone = function(runDetails) {
this.finished = true;
this.runDetails = runDetails;
executionTime = timer.elapsed();
status = 'done';
};