From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wiegley Subject: Re: Personal unit testing within org mode? Date: Fri, 23 Oct 2009 06:37:38 -0400 Message-ID: <3B8782C2-6F7C-4FA3-AE6F-1AA45781B005@gmail.com> References: <5641883d0910230308i41ff7d01g5b448018732e991c@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v1075.2) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1HWm-0007Fo-52 for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:37:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1HWh-0007Dy-Ff for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:37:47 -0400 Received: from [199.232.76.173] (port=58804 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1HWh-0007Dv-0N for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:37:43 -0400 Received: from mail-qy0-f196.google.com ([209.85.221.196]:37292) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1HWg-0004uq-NS for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:37:42 -0400 Received: by qyk34 with SMTP id 34so5615587qyk.14 for ; Fri, 23 Oct 2009 03:37:42 -0700 (PDT) In-Reply-To: <5641883d0910230308i41ff7d01g5b448018732e991c@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Oliver Charles Cc: emacs-orgmode Org-Mode On Oct 23, 2009, at 6:08 AM, Oliver Charles wrote: > I think tests can be defined as a new keyword sequence: (sequence > "TEST" "|" "PASSED" "FAILED"). All unit tests are set to repeat daily, > and have state change logging enabled. So when you move from TEST -> > PASSED, it logs this and then moves back to TEST. SImple so far right? > > Well another important part is being able to review how well I've done > in the last week, and this is where org-habit comes in. I'm thinking > of ripping off that little graph it produces, but the problem I have > is where should I put it? Do you think it will work in the agenda, or > should I generate some type of custom view? Perhaps something like > generating time clock reports? Doesn't org-habit, with repeating tasks, already give you just what you've described above? All you need to do is add the todo states to your #+TODO line at the top of your Org file. Then they will repeat as you've described, and reporter progress below. You'd have to simulate FAILED condition by just not recording the task as done, and a PASSED if you do achieve it. Then the habits graph could be meaningful for this. John