From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Renaud Newsgroups: gmane.emacs.help Subject: Figuring out a nice workflow for unittesting with Emacs Date: Sun, 17 Apr 2011 18:55:08 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e64e570aa5950d04a1252add X-Trace: dough.gmane.org 1303158031 14346 80.91.229.12 (18 Apr 2011 20:20:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2011 20:20:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 18 22:20:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QBuvr-0002Jq-Ua for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Apr 2011 22:20:28 +0200 Original-Received: from localhost ([::1]:46777 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBuvr-0001UD-Do for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Apr 2011 16:20:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBas2-0000qx-LD for help-gnu-emacs@gnu.org; Sun, 17 Apr 2011 18:55:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBas1-00019L-HS for help-gnu-emacs@gnu.org; Sun, 17 Apr 2011 18:55:10 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:64360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBas1-00019A-FO for help-gnu-emacs@gnu.org; Sun, 17 Apr 2011 18:55:09 -0400 Original-Received: by qyk30 with SMTP id 30so3230129qyk.0 for ; Sun, 17 Apr 2011 15:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=4WFtEuwm8zlt36J9hixxAQsLCzW1+eyh7gZFimNC26c=; b=l9mF72C8wy0Gp6KGVr4DPRqP5IMMlUZSYcV6W5nuOVKivNE8JjPNMjzcu5f/P5e6hI p27QRfhCw9ylTyqypb1KOdg2igKfNA8Zy5GL1GiPO1J4kqXWB850BWSFMhygA3+TfF6q YhiP2x1BwG8tA9/YEufWevHf1nXUqXuCDlrjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=a2dtd5QremGvWg6e1hSL1k/XiogPkNALkRvdsiqYjS7qA423l6casbwEpHOjRquva3 H5od7gBxJdtBTqr2MAwHl2b+KXl0hUapKfnSbf3o/lym2/HGJGRjUvVkHcjpxATFAWlK GxAHZj4aHdtF9B/Bk+x/glT9Y13Rbq6GD1oac= Original-Received: by 10.224.128.135 with SMTP id k7mr2223281qas.70.1303080908198; Sun, 17 Apr 2011 15:55:08 -0700 (PDT) Original-Received: by 10.224.20.66 with HTTP; Sun, 17 Apr 2011 15:55:08 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.176 X-Mailman-Approved-At: Mon, 18 Apr 2011 16:20:22 -0400 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:80822 Archived-At: --0016e64e570aa5950d04a1252add Content-Type: text/plain; charset=ISO-8859-1 I am used to slightly abusing compile command to run unittests, because i get the nice go to file:line behavior on failures. But I am now unittesting 3 different files at different levels of abstraction and constantly going back and forth between the tests. When I am unittesting a single file at a time, compile-command works beautifully. But now I need to constantly re-type the compile command when I want to change the test I am running. Is there a way to add history to the compile command function? Alternatively, can I augment use some shell mode (which obviously has command history) with the go to file:line behavior when I get a test failure? --0016e64e570aa5950d04a1252add Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am used to slightly abusing compile command to run unittests,= =A0because i get the nice go to file:line behavior on failures. =A0But=A0I = am now unittesting 3 different=A0files at different levels of abstraction a= nd constantly going=A0back and forth between the tests. =A0When I am unitte= sting a single file at a time, compile-command works beautifully. =A0But no= w I need to constantly re-type the compile command when I want to change th= e test I am running. =A0

Is there a way to add history to the compile command fu= nction? =A0Alternatively, can I augment use some shell mode (which obviousl= y has command history) with the go to file:line behavior when I get a test = failure?
--0016e64e570aa5950d04a1252add--