         err: null
 
   runner.on 'pass', (test) ->
+
     send
       title: test.title
       duration: test.duration

      harness: 'Step'

  runner.on 'fail', (test, testErr) ->
    testStepFailed = yes
    send
      title: test.title
      state: test.state
      harness: 'Step'
      err: testErr.message.toString()


@sessionId = null
@runId = null
@tags = null

send = (snippet) =>
  snippet['sessionId'] = @sessionId = if !@sessionId? then snippet.sessionId else @sessionId
  snippet['runId'] = @runId = if !@runId? then Date.now()+Math.floor Math.random() * 10000 else @runId
  snippet['tags'] = @tags = if !@tags? then snippet.tags else @tags
  elastic.send snippet, (e) ->
    return new ElasticSearchError e if e

