Skip to content

Commit 980b951

Browse files
committed
Tweak honeycomb events further
1 parent b8f1b4f commit 980b951

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

system-tests/lib/performance-reporter.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class HoneycombReporter {
4141
})
4242

4343
runner.on('test', (test) => {
44-
const title = test.titlePath().join(' / ')
45-
// This regex pulls apart a string like `e2e async timeouts / failing1 [electron]`
46-
// into `e2e async timeouts / failing1` and `electron`, letting us use the same
44+
const path = test.titlePath()
45+
// This regex pulls apart a string like `failing1 [electron]`
46+
// into `failing1` and `electron`, letting us use the same
4747
// test name for all browsers, with the browser as a separate field.
4848
// The browser capture group is optional because some tests aren't browser specific,
4949
// in which case it will be undefined and not passed as a field to honeycomb.
50-
const [, testTitle, browser] = title.match(/(.+?)(?: \[([a-z]+)\])?$/)
50+
const [, testTitle, browser] = path[path.length - 1].match(/(.+?)(?: \[([a-z]+)\])?$/)
5151

5252
test.honeycombEvent = this.honey.newEvent()
5353
test.honeycombEvent.timestamp = Date.now()
@@ -76,8 +76,7 @@ class HoneycombReporter {
7676
durationMs: Date.now() - test.honeycombEvent.timestamp,
7777
})
7878

79-
console.log(test.honeycombEvent.data)
80-
// test.honeycombEvent.send()
79+
test.honeycombEvent.send()
8180
})
8281

8382
runner.on('suite end', (suite) => {

0 commit comments

Comments
 (0)