From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Collection of code block snippets Date: Tue, 06 Sep 2011 09:16:16 -0600 Message-ID: <877h5lzolk.fsf@gmail.com> References: <878vq48dvt.fsf@gmail.com> <87zkiiq4ko.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0xQ0-0004HC-1M for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 11:18:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0xPp-0008KC-5z for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 11:18:32 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:44811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0xPo-0008K7-WC for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 11:18:21 -0400 Received: by ywm13 with SMTP id 13so4273634ywm.0 for ; Tue, 06 Sep 2011 08:18:20 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: Org Mode Hi Rainer, > >> - exporting to some backend and checking the resulting export file >> would either leave out some results or possibly be very brittle to >> small changes (e.g., changes in the exporter backend) >> > > This might be actually be an advantage - if changes are detected, the > exported file can be evaluated visually and added to the "aceptable > results", either generally or for a user. > Makes sense. Well, this process shouldn't be difficult, you could simply export scraps.org to say scraps.html at a time when you know that your config is working (you may have to edit parts of scraps.org). You can then save the resulting scraps.html file, and in the future you can re-export scraps.org and compare the results with your reserved scraps.html using the diff utility. If you see more differences than simply the date you may have problems. > > Yes - I have a few times run into problems due to my configuration file and > only realized it later - if there would be ab org file which I could use to > test easily my configuration directly after making the changes, life would > have been much easier for me. This would also be useful for questions on the > mailing list and for a kind of "quality control" for published configs on > the web. > Is there a reason that you can't just use the existing test suite for this purpose? Running the test suite should be as simple as loading the org-test.el file in org/testing/lisp/org-test.el and then calling the `org-test-run-all-tests' function. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/