From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkS45-0008FJ-7G for guix-patches@gnu.org; Wed, 23 Aug 2017 05:35:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkS3y-0004G3-Cq for guix-patches@gnu.org; Wed, 23 Aug 2017 05:35:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkS3y-0004Fq-9D for guix-patches@gnu.org; Wed, 23 Aug 2017 05:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dkS3y-0001ju-0f for guix-patches@gnu.org; Wed, 23 Aug 2017 05:35:02 -0400 Subject: [bug#28199] [PATCH] gnu: Add emacs-minitest. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkS3Z-0007j2-M6 for guix-patches@gnu.org; Wed, 23 Aug 2017 05:34:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkS3W-00046v-KB for guix-patches@gnu.org; Wed, 23 Aug 2017 05:34:37 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:48710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkS3W-00046l-DW for guix-patches@gnu.org; Wed, 23 Aug 2017 05:34:34 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id C15E91474DA for ; Wed, 23 Aug 2017 10:34:33 +0100 (BST) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id ab0b71ac for ; Wed, 23 Aug 2017 09:34:33 +0000 (UTC) From: Christopher Baines Date: Wed, 23 Aug 2017 10:34:33 +0100 Message-Id: <20170823093433.8118-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28199@debbugs.gnu.org * gnu/packages/emacs.scm (emacs-minitest): New variable. --- gnu/packages/emacs.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 140a53205..bb4375fa6 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -1628,6 +1628,47 @@ display and behaviour is easily customisable.") of files under Git version control from within Emacs.") (license license:gpl3+))) +(define-public emacs-minitest + (package + (name "emacs-minitest") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/arthurnn/minitest-emacs/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1dsb7kzvs1x6g4sgqmq73jqacb7wzm0wfkiq5m9dqdzq8mppgiqs")))) + (build-system emacs-build-system) + (arguments + '(#:include (cons "^snippets\\/minitest-mode\\/" %default-include) + #:exclude (delete "^[^/]*tests?\\.el$" %default-exclude))) + (propagated-inputs + `(("emacs-dash" ,emacs-dash) + ("emacs-f" ,emacs-f))) + (home-page "https://github.com/arthurnn/minitest-emacs") + (synopsis "Emacs minitest mode") + (description + "The minitest mode provides commands to run the tests for the current +file or line, as well as rerunning the previous tests, or all the tests for a +project. + +To enable minitest mode on ruby files, use: + +@example +(add-hook 'ruby-mode-hook 'minitest-mode) +@end example + +If you hava yasnippet installed, you can load snippets relevent to minitest: + +@example +(eval-after-load 'minitest + '(minitest-install-snippets)) +@end example") + (license license:expat))) + (define-public emacs-el-mock (package (name "emacs-el-mock") -- 2.14.1