       should.not.exist err
       should.exist coverage
       post_coverage base_url, coverage, ->
-        quit browser, notify_sauce_labs, done
+        quit browser, failures, notify_sauce_labs, done
 
   ctx.beforeEach ->
     passed = false

  ctx.afterAll (done)->

    if not coverage
      return quit browser, notify_sauce_labs, done

    console.log '\n-----\nGenerating test coverage\n-----'


    do done


quit = (browser, failures, notify_sauce_labs, done) ->
  browser.quit (err)->
    should.not.exist err
    
