Skip to content

Commit 3ca1078

Browse files
committed
Fixed it!
1 parent da898a0 commit 3ca1078

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var bambooReporter = function (baseReporterDecorator) {
1919
};
2020

2121
this.onSpecComplete = function (browser, result) {
22-
results.time += browser.lastResult.totalTime;
23-
result.bowser = browser.name;
22+
results.time += result.time;
23+
result.browser = browser.name;
2424
results.tests.push(result);
2525
if (result.skipped) results.skips.push(result);
2626
else if (result.success) results.passes.push(result);
@@ -29,7 +29,7 @@ var bambooReporter = function (baseReporterDecorator) {
2929

3030
this.onRunComplete = function (browser, result) {
3131
var obj = {
32-
stats: {suites: result, tests: (result.success + result.failed), passes: result.success, failures: result.failed, duration: results.time }, failures: results.failures.map(clean), passes: results.passes.map(clean), skipped: results.skips.map(clean)
32+
stats: {tests: (result.success + result.failed), passes: result.success, failures: result.failed, duration: results.time }, failures: results.failures.map(clean), passes: results.passes.map(clean), skipped: results.skips.map(clean)
3333
};
3434

3535
fs.writeFileSync(filename, JSON.stringify(obj, null, 2), 'utf-8');
@@ -41,7 +41,7 @@ var bambooReporter = function (baseReporterDecorator) {
4141

4242
function clean(test) {
4343
var o = {
44-
title: test.id + ' on ' + test.browser, fullTitle: test.description, duration: test.time
44+
title: test.suite.join(' ') + ' on ' + test.browser, fullTitle: test.suite.join(' ') + ' ' + test.description + ' on ' + test.browser, duration: test.time
4545
};
4646
if (!test.success) {
4747
o.error = test.log.join('\n');

0 commit comments

Comments
 (0)