Skip to content

Commit d86ffed

Browse files
committed
Reporter: report tracebacks to _progress.
1 parent fbfbaf7 commit d86ffed

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/_patch/reporter.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(function() {
22
var runner;
3-
var tracebacks = [];
43
var total = 0,
54
passed = 0,
65
failed = 0;
@@ -22,7 +21,15 @@
2221
failed = failed + (test.status === 'failed' ? 1 : 0);
2322

2423
test.errors.forEach(function(error) {
25-
tracebacks.push(error)
24+
BrowserStack.post("/_progress", {
25+
tracebacks: [{
26+
actual: error.actual,
27+
expected: error.expected,
28+
message: error.message,
29+
source: error.source || error.stack,
30+
testName: test.testName
31+
}]
32+
}, function() {});
2633
});
2734
});
2835

@@ -33,7 +40,6 @@
3340
results.total = total;
3441
results.passed = passed;
3542
results.failed = failed;
36-
results.tracebacks = tracebacks;
3743
results.url = window.location.pathname;
3844

3945
BrowserStack.post("/_report", results, function() {});

0 commit comments

Comments
 (0)