From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.help Subject: Re: Cask for testing Date: Thu, 14 Aug 2014 16:09:32 +0200 Message-ID: <01403B62-6752-42F3-9CEA-AFCE18674BA3@lunaryorn.com> References: <874mxfz7jb.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1408025407 12520 80.91.229.3 (14 Aug 2014 14:10:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 14:10:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Phillip Lord Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 16:10:01 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHvj6-0002Un-VG for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2014 16:10:01 +0200 Original-Received: from localhost ([::1]:54245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHvj1-00064q-CM for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2014 10:09:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHvim-00063t-MH for help-gnu-emacs@gnu.org; Thu, 14 Aug 2014 10:09:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHvii-0004wR-BZ for help-gnu-emacs@gnu.org; Thu, 14 Aug 2014 10:09:40 -0400 Original-Received: from vega.uberspace.de ([95.143.172.245]:37895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHvii-0004vR-2h for help-gnu-emacs@gnu.org; Thu, 14 Aug 2014 10:09:36 -0400 Original-Received: (qmail 18475 invoked from network); 14 Aug 2014 14:09:34 -0000 Original-Received: from localhost (HELO lunaryorn-air.fritz.box) (127.0.0.1) by vega.uberspace.de with SMTP; 14 Aug 2014 14:09:34 -0000 In-Reply-To: <874mxfz7jb.fsf@newcastle.ac.uk> X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 95.143.172.245 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99211 Archived-At: Am 14.08.2014 um 12:31 schrieb Phillip Lord = : >=20 >=20 > I have been investigating Cask for use with testing my Emacs packages, > but have been struggling with it. The documentation is not very rich = as > it stands. I was wondering if anyone has a good workflow? >=20 > I thought I would start of with m-buffer.el which has few = dependencies. >=20 > https://github.com/phillord/m-buffer-el >=20 > Currently, I have this testing in batch with a shell script. The > dependencies have been included and downloaded into the test directory > (which is obviously not ideal). I am using travis for CI. Testing also > works interactively from within Emacs. My hope was to use Cask for = batch > dependency resolution. >=20 > My Cask file looks like this: >=20 > (source gnu) > (source melpa) >=20 > (package-file "m-buffer.el") > (depends-on "dash") >=20 > (development > (depends-on "ert-runner")) >=20 > Cask correctly downloads the dependencies. But it doesn't put > m-buffer.el onto the load path. So any attempt to use ert-runner = fails. > What am I doing wrong? Nothing, Cask simply doesn=92t do that. It doesn=92t make assumption = about the local layout of the source code tree, since that=92d be too flaky = for more complex packages, e.g. consisting of different files in different=20= directories. However, you can tell erg-runner to additional files, e.g. cask exec ert-runner -l ./m-buffer.el=20 To make this permanent, add an =84.ert-runner=93 file to the root of = your source code tree, with the following contents: -l ./m-buffer.el=20 Please note that Cask is not part of GNU Emacs, nor in any way = affiliated=20 with it. As such, this list is not the best place to ask questions = about Cask, since it=92s not regularly monitored by us. Please refer to the = Github issue tracker or to Cask=92s own mailing list for questions.=