From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Charles Subject: Personal unit testing within org mode? Date: Fri, 23 Oct 2009 11:08:38 +0100 Message-ID: <5641883d0910230308i41ff7d01g5b448018732e991c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1H4i-0001F7-Us for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:08:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1H4d-0001D1-RQ for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:08:48 -0400 Received: from [199.232.76.173] (port=37381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1H4d-0001Cp-C5 for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:08:43 -0400 Received: from mail-fx0-f228.google.com ([209.85.220.228]:38182) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1H4b-0008Nb-Ek for emacs-orgmode@gnu.org; Fri, 23 Oct 2009 06:08:41 -0400 Received: by fxm28 with SMTP id 28so10263852fxm.42 for ; Fri, 23 Oct 2009 03:08:38 -0700 (PDT) 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: emacs-orgmode Org-Mode Personal unit tests [1] are unit tests for life. You give yourself a few clear goals that you must pass daily (or perhaps weekly) and try to reach them. By reviewing and evaluating the goals every morning they are clear in your head and to me they seem like a great way to change behaviour and habits. At least, I thought that in theory a while ago, but never got round to finding a simple way to integrate them into my life. org-habit which came out recently has given me motivation to start work on making org-punit, but before I start work on my first ever bit of real Elisp (which is going to take some learning anyway!), I wanted to quickly let you guys know how I plan to do this. 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? I'd love to hear your thoughts on this! -- Oliver Charles / aCiD2