 
 (defvar mocha-project-test-directory nil)
 
-(defun mocha-command (&optional mocha-file)
+(defun mocha-generate-command (&optional mocha-file)
   "The test command to run.
 
 If MOCHA-FILE is specified run just that file otherwise run MOCHA-PROJECT-TEST-DIRECTORY"

  "Run mocha in a compilation buffer.

If MOCHA-FILE is specified run just that file otherwise run MOCHA-PROJECT-TEST-DIRECTORY"
  (compile (mocha-command mocha-file))
  (when (get-buffer "*mocha tests*")
    (kill-buffer "*mocha tests*"))
  (pop-to-buffer "*compilation*")
  (rename-buffer "*mocha tests*"))

;;;###autoload
(defun mocha-test-project ()

  (interactive)
  (mocha-run (buffer-file-name)))

(provide 'mocha)
;;; mocha.el ends here
