From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: Cask for testing Date: Fri, 15 Aug 2014 11:43:57 +0100 Message-ID: <87sikyav82.fsf@newcastle.ac.uk> References: <874mxfz7jb.fsf@newcastle.ac.uk> <01403B62-6752-42F3-9CEA-AFCE18674BA3@lunaryorn.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1408099477 22868 80.91.229.3 (15 Aug 2014 10:44:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2014 10:44:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sebastian Wiesner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 12:44:29 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 1XIEzl-0005c6-3c for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2014 12:44:29 +0200 Original-Received: from localhost ([::1]:58487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIEzk-0008TF-NO for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2014 06:44:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIEzQ-0008L6-Qy for help-gnu-emacs@gnu.org; Fri, 15 Aug 2014 06:44:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIEzM-0001nf-CD for help-gnu-emacs@gnu.org; Fri, 15 Aug 2014 06:44:08 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:43156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIEzM-0001n4-6R for help-gnu-emacs@gnu.org; Fri, 15 Aug 2014 06:44:04 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1XIEzG-0007dc-DW; Fri, 15 Aug 2014 11:43:58 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XIEzF-0004WF-Vc; Fri, 15 Aug 2014 11:43:57 +0100 In-Reply-To: <01403B62-6752-42F3-9CEA-AFCE18674BA3@lunaryorn.com> (Sebastian Wiesner's message of "Thu, 14 Aug 2014 16:09:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 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:99223 Archived-At: Sebastian Wiesner writes: >> 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=E2=80=99t do that. It doesn=E2=80=99t make as= sumption about > the local layout of the source code tree, since that=E2=80=99d be too fla= ky for > more complex packages, e.g. consisting of different files in different=20 > directories. (package-file "m-buffer.el") -- I mean, I've already told Cask about this. > 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 =E2=80=9E.ert-runner=E2=80=9C file to the = root of your > source code tree, with the following contents: > > -l ./m-buffer.el=20 Hmmm, okay. So cask then is setting my load-path to dependencies, ert-runner is adding in files in the ./test directory? I guess this helps in some way. > 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=E2=80=99s not regularly monitored by us. Please refer to = the Github > issue tracker or to Cask=E2=80=99s own mailing list for questions. I didn't want to use an issue tracker to ask for help, and the only mailing list that is mentioned in the documentation is cask-dev; normally, I'd not send request for help to a -dev mailing list, especially one with private archives. Phil