emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [babel] using babel for regression testing


From: Eric Schulte
Subject: Re: [O] [babel] using babel for regression testing
Date: Tue, 17 Apr 2012 13:46:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Ilya Shlyakhter <address@hidden> writes:

> Is there a babel command to do the following:
> evaluate all code blocks; for those for which the result is not yet
> recorded in the org file, record the result; for those for which the
> result was already recorded, compare the new result with the old result;
> flag blocks where there is a difference.
>
> thanks,
>
> ilya
>
>

Hi ilya,

No, the above workflow is not wrapped up in any existing single Babel
function.  If you wanted to implement this yourself you could do so with
a custom emacs lisp function or perhaps more easily, you could either;

1. add one code block to the file which calls all other code blocks and
   performs the result comparison, or

2. you could do what we did when initially testing the Babel
   functionality, and include all of your tests in a single table along
   with the expected results, you can then use the `sbe' function from
   table formulas, to run all code blocks by evaluating the table.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]