ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: General suggestion: Unit tests for ConText
Date: Tue, 19 Jul 2011 01:20:57 +0200	[thread overview]
Message-ID: <4E24BFD9.70908@wxs.nl> (raw)
In-Reply-To: <20110718195148.4fa6e92f@freenet.de>

On 18-7-2011 7:51, Peter Schorsch wrote:
> Hi,
>
> during my work with context I wrote a bunch of fewliners mainly to test
> how to do things. When there change from mkii to mkiv occured many of
> my mini-tests failed and later with the growing of mkiv restartet to
> work - some just without adaption.. some with some adjustment to a new
> syntax.
>
> I realize that they have the same functionality like unit-tests -
> just instead of comparing classes and variables - a pdf-output is
> visually compared.
>
> So I like to suggest to introduce unit tests for context. It would
>
> 	a) increase the quality of context as it makes the
> 	testing easier for the developer
>
> 	b) it also would be a great source of minihowtos for learning
> 	context.
>
> Before I write my technical ideas about this I would like to know what
> are you thinking about this idea?

fyi: there is an archive with a bunch of tests (mostly mine but I 
occasionally add -adapted- samples from the list):

http://www.pragma-ade.nl/context/latest/cont-tst.7z

Quite some of these can be used for testing, some can also serve as 
examples of usage. I have a script that can process them and keep track 
of changes at a rough pixel level but simply have no time to keep up 
with that.

Hans





-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2011-07-18 23:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 17:51 Peter Schorsch
2011-07-18 18:03 ` Paul Menzel
2011-07-18 23:20 ` Hans Hagen [this message]
2011-07-19 10:30   ` Cecil Westerhof
2011-07-19 10:28 ` Cecil Westerhof

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=4E24BFD9.70908@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).