   ctx.afterAll (done)->
 
     if not coverage
-      return quit browser, notify_sauce_labs, done
+      return quit browser, failures, notify_sauce_labs, done
 
     console.log '\n-----\nGenerating test coverage\n-----'
 

      should.not.exist err
      should.exist coverage
      post_coverage base_url, coverage, ->
        quit browser, notify_sauce_labs, done

  ctx.beforeEach ->
    passed = false

    do done


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