[TIP] Sclara is a Python testing DSL

Chris.Wesseling at cwi.nl Chris.Wesseling at cwi.nl
Mon Mar 26 06:18:35 PDT 2012

On 2012-03-26T07:08:29-0400, Alfredo Deza wrote:
> On Mon, Mar 26, 2012 at 3:56 AM, <Chris.Wesseling at cwi.nl> wrote:
> > On 2012-03-24T16:00:06-0500, John MacKenzie wrote:
> > > http://github.com/198d/sclara
> > [...]
> > > There are failures in both as a demonstration of how this interacts with
> > a
> > > TestRunner. The first one proves mainly that this is just Python; if you
> > > use one of the provided runners you can execute your test files with the
> > > Python interpreter (a big goal after looking at a tool like komira for
> > this
> > > sort of thing). The latter demonstrates that a nose plugin is possible
> > and
> > > probably implies that a py.test plugin is doable to.
> >
> > Could you point me to "komira"? Your e-mail turns up as the only
> > relevant hit using my search-fu.
> >
> Konira is a Testing DSL framework [0] that I started working on about a
> year and a half ago. It
> is not valid Python (hence the DSL connotation) but it is translated to it
> when tests are run
> via de included Test Runner or with the py.test [1] plugin for it.

Ah, a typo. No search engine I tried replied "Did you mean: konira testing
python" to my "komira testing python" query. Thanks.
I've seen Konira before, didn't stick.

> The problem that I see these solutions (including Konira) bring to the
> table is that they all try to
> create a flexible, descriptive and terse domain for writing tests, and
> while some of them have a
> significant gain over current testing standards, they fail when the
> complexity goes beyond
> asserting something that has a nice description.

Could that complexity be a code smell? 
Given enough context every assertion could have a nice description. Or
couldn't they?

> [0] http://konira.cafepais.com/docs/index.html
> [1] http://pypi.python.org/pypi/pytest-konira

Chris Wesseling
Centrum Wiskunde & Informatica (CWI)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120326/9a6567f3/attachment.pgp>

More information about the testing-in-python mailing list