mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 14:32:14 +02:00
Add test runtime metric
This commit is contained in:
parent
4e15bab9be
commit
3d4e48aabd
@ -59,6 +59,7 @@ func (eventHandler) Event(event testjson.TestEvent, execution *testjson.Executio
|
||||
NUM_TEST_RETRIES[testIdentifier] += 1
|
||||
}
|
||||
if event.Action == testjson.ActionPass {
|
||||
GLOBAL_STATSD.Distribution("test_runtime", event.Elapsed, []string{"test:" + testIdentifier, "os:" + runtime.GOOS}, 1.0)
|
||||
GLOBAL_STATSD.Incr("test_status", []string{"result:passed", "test:" + testIdentifier, "os:" + runtime.GOOS}, 1.0)
|
||||
NUM_TEST_RETRIES[testIdentifier] += 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user