From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [CEDET-devel] Org-mode Date: Thu, 04 Nov 2010 13:16:03 -0600 Message-ID: <874obwsxvw.fsf@gmail.com> References: <4CD15272.2080303@siege-engine.com> <8139rht16z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=55522 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE5J4-0004rh-45 for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 15:17:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE5I7-0004L7-LB for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 15:16:10 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:53718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PE5I7-0004Kr-ID for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 15:16:07 -0400 Received: by iwn9 with SMTP id 9so1974806iwn.0 for ; Thu, 04 Nov 2010 12:16:06 -0700 (PDT) In-Reply-To: <8139rht16z.fsf@gmail.com> (Jambunathan K.'s message of "Thu, 04 Nov 2010 23:34:36 +0530") 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: Jambunathan K Cc: "Eric M. Ludlam" , Lennart Borgman , Konrad Scorciapino , Carsten Dominik , Org Mode , cedet-devel@lists.sourceforge.net Jambunathan K writes: > The main challenge with breaking up org-html.el first and then say > plugging in org-odt.el to that later is: > > 1. Code-churn that it would create in org-html.el > 2. Proving that *nothing* in HTML export actually breaks. > > Carsten would like to avoid (1) - he might want to go with one bit > commit and (naturally) shift the responsibility of (2) to the committer. > > So a committer has one more thing he needs to be concerned about. > > I do see some regression tests for html exporter and I am unsure how > *complete* they are. What would have really made things easier is the > following: > I don't believe that there are any existing unit tests for the org html exporter, however writing a suite of such tests seems like the best first step in this project. It would allow sanity checks throughout the implementation of the parser, and would give some confidence in the parsers functionality before merging back into the core. Org-mode has a test suite based around ERT, which should facilitate this process. Look in the testing directory of the Org-mode repository. > > 1. One Org file in repo that has *all* the Org-specific markups. Yes, either one large file or many smaller files. For the Babel tests we use one large file with one subtree per test s.t. it is easy for a specific test to jump to the appropriate section of the file. > > 2. One HTML file that is a exported from this Org file which is > re-checked in as and when the org-html.el changes it's markups. > > Everytime something changes in the exporter one just diffs the *new* > HTML file with the one in the repo and be able to say with assured > confidence that something has improved or broken. > I think a series of feature specific unit tests would provide more granular feedback, would allow incremental development, and would allow differences in non-essential properties like white-space. Best -- Eric