;;; Package --- Summary:

;;; Summary:

;;; Commentary:

;;; Code:
(defvar mocha-command "mocha")

(defvar mocha-environment-variables nil)

(defvar mocha-reporter "dot")

(defvar mocha-options nil)

(defvar mocha-project-test-directory nil)

(defun mocha-test-project ()
  "Test the current project."
  nil)

(defun mocha-test-file ()
  "Test the current file."
  nil)

(defun mocha-test-at-point ()
  "Test the current innermost 'it' or 'describe' or the file if none is found."
  nil)

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

;;; mocha.el --- Mocha testing for Emacs:

;; Copyright (C) 2016 Al Scott <github.com/scottaj>
;; Author: Al Scott
;; URL: http://github.com/pezra/scottaj/mocha-mode
;; Created: 2016
;; Version: 0.1
;; Keywords: javascript mocha jasmine
;; Package-Requires: ()

;; This file is NOT part of GNU Emacs.
;;
;;; Commentary:
;;
;; This mode provides the ability to run Mocha or Jasmine tests from within Emacs

;;; Code:
(defvar mocha-which-node "node")

(defvar mocha-command "mocha")

(defvar mocha-environment-variables nil)

(defvar mocha-options nil)

(defvar mocha-project-test-directory nil)

(defun mocha-command ()
  "The test command to run."
  (concat mocha-environment-variables " " mocha-which-node " " mocha-command " " mocha-options " " mocha-project-test-directory))

(defun mocha-test-project ()
  "Test the current project."
  (interactive)
  (compile (mocha-command)))

(defun mocha-test-file ()
  "Test the current file."
  (interactive)
  nil)

(defun mocha-test-at-point ()
  "Test the current innermost 'it' or 'describe' or the file if none is found."
  (interactive)
  nil)

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

Add ability to run tests on whole directory.
Add ability to run tests on whole directory.

scottaj/mocha.el