From: Rainer M Krug <r.m.krug@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: [babel] Collection of code block snippets
Date: Tue, 6 Sep 2011 10:26:29 +0200 [thread overview]
Message-ID: <CAGhLh6FrgD8wUCXG7V06aU5yAahZsL9aZTmhNZdQojoT1-F61w@mail.gmail.com> (raw)
In-Reply-To: <87zkiiq4ko.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3331 bytes --]
On Mon, Sep 5, 2011 at 6:54 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
> Hi Rainer,
>
> > Just as a sideline: would it be possible, to use this file to test babel
> (on
> > a high level)?, i.e. collect all results and compare them with previous
> sets
> > of results?
> >
>
> Two problems I see with running these examples in a single large block
>
> 1. I'm not sure how to collect all of the results, both of the two
> options that occur to me
> - mapping over each example and evaluating the first code block or
>
Probably would be the better solution, and also just skip tests for which
the languages are not installed.
> - 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.
>
> 2. executing the whole set would require a wide range of languages be
> installed on the users system many of which most people would never
> use
>
Point taken - I haven't considered that.
>
> >
> > Especially, as this file is high-level and contains a whole range of
> > "examples for the real world", I think that might be useful. It would
> > definitely not be usable t pinpoint errors, but at identify unintended
> side
> > effects.
>
> I do agree that this collection holds great promise as fodder for Babel
> unit tests (unit tests which are sorely needed). Each example could be
> wrapped in an ert test method and then one-by-one copied over into the
> Org-mode test suite. This should be a fairly easy way to greatly
> increase Babel's test suite coverage -- and most importantly it would be
> explicitly testing topics that have arisen previously on the mailing
> list so are of importance to users.
>
Exactly.
>
> > And if this could be done by the user to test .emacs configuration
> > settings, that would be really great.
> >
>
> That's a good idea. Simply running the Org-mode test suite is a good
> way for users to test the sanity of their local config.
>
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.
> Best -- Eric
>
Cheers,
Rainer
>
> >
> > Thanks,
> >
> > Rainer
> >
> >
> >
> >>
> >> Hope this is useful and or fun, I will continue to update it as the
> >> scraps.org file grows.
> >>
> >> Cheers -- Eric
> >>
> >> --
> >> Eric Schulte
> >> http://cs.unm.edu/~eschulte/
> >>
> >>
>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte/
>
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax (F): +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer@krugs.de
Skype: RMkrug
[-- Attachment #2: Type: text/html, Size: 5269 bytes --]
next prev parent reply other threads:[~2011-09-06 8:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-04 16:35 [babel] Collection of code block snippets Eric Schulte
2011-09-05 8:29 ` Rainer M Krug
2011-09-05 16:54 ` Eric Schulte
2011-09-06 8:26 ` Rainer M Krug [this message]
2011-09-06 15:16 ` Eric Schulte
2011-09-06 15:35 ` Martyn Jago
2011-09-06 17:13 ` Eric Schulte
2011-09-07 8:19 ` Rainer M Krug
2011-09-07 18:24 ` Martyn Jago
2011-09-07 18:15 ` Martyn Jago
2011-09-08 15:16 ` Eric Schulte
2011-09-08 16:18 ` Martyn Jago
2011-09-08 17:44 ` Eric Schulte
2011-09-08 18:34 ` Martyn Jago
2011-09-08 22:03 ` Martyn Jago
2011-09-09 8:22 ` Rainer M Krug
2011-09-09 10:58 ` Martyn Jago
2011-09-09 11:11 ` Martyn Jago
2011-09-09 20:39 ` Eric Schulte
2011-09-10 8:09 ` Martyn Jago
2011-09-11 20:57 ` Eric Schulte
2011-09-14 4:49 ` David Maus
2011-09-14 12:10 ` Martyn Jago
2011-09-09 19:19 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGhLh6FrgD8wUCXG7V06aU5yAahZsL9aZTmhNZdQojoT1-F61w@mail.gmail.com \
--to=r.m.krug@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=schulte.eric@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.