[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I run a whole test suite with Guile's default test runner
From: |
Taylan Ulrich Bayırlı/Kammer |
Subject: |
Re: How do I run a whole test suite with Guile's default test runner |
Date: |
Wed, 18 Mar 2015 23:17:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Luis Felipe López Acevedo <address@hidden> writes:
> Hi,
>
> I'm learning to program in Guile Scheme and currently reading and
> practicing unit testing with SRFI-64.
>
> How do I make the default test runner in Guile run my whole test
> suite? I put all tests in a tests directory (see
> <https://bitbucket.org/sirgazil/guilelab/src>).
>
> Thanks,
The way you wrote that file, the test suite will be run when you load
the module. Instead, you could wrap all those top-level forms (sans the
module declaration) in some kind of 'main' procedure.
And for what it's worth, I have an arguably cleaner implementation of
SRFI-64 here, but it's an R7RS library so it won't work out-of-the-box
on Guile yet: https://gitorious.org/taylan-scheme/srfi/
Taylan