 
   destroy: ->
     @unsubscribe
+    @removeCoverageFile()
     for area in areas
       area.destroy()
 

spawn = require('child_process').spawn
temp = require('temp')
{Subscriber, Emitter} = require 'emissary'
GocovAreaView = require './gocov/gocov-area-view'
GocovParser = require './gocov/gocov-parser'

    else
      @resetCoverage()

  removeCoverageFile: =>
    if @coverageFile
      # Remove the coverage file
      fs.unlink @coverageFile

  createCoverageFile: =>
    @removeCoverageFile()
    tempDir = temp.mkdirSync()
    @coverageFile = tempDir + "/coverage.out"

  runCoverage: =>
    return unless @coverageEnabled()
    tempFile = @createCoverageFile()

    gopath = @dispatch.buildGoPath()
    editorView = atom.workspaceView.getActiveView()
    buffer = editorView?.getEditor()?.getBuffer()
