* How do I run a whole test suite with Guile's default test runner
@ 2015-03-18 20:57 Luis Felipe López Acevedo
2015-03-18 22:17 ` Taylan Ulrich Bayırlı/Kammer
0 siblings, 1 reply; 6+ messages in thread
From: Luis Felipe López Acevedo @ 2015-03-18 20:57 UTC (permalink / raw)
To: guile-user
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,
--
Luis Felipe López Acevedo
http://sirgazil.bitbucket.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do I run a whole test suite with Guile's default test runner
2015-03-18 20:57 How do I run a whole test suite with Guile's default test runner Luis Felipe López Acevedo
@ 2015-03-18 22:17 ` Taylan Ulrich Bayırlı/Kammer
2015-03-18 22:34 ` Luis Felipe López Acevedo
2015-03-20 8:12 ` Ludovic Courtès
0 siblings, 2 replies; 6+ messages in thread
From: Taylan Ulrich Bayırlı/Kammer @ 2015-03-18 22:17 UTC (permalink / raw)
To: Luis Felipe López Acevedo; +Cc: guile-user
Luis Felipe López Acevedo <felipe.lopez@openmailbox.org> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do I run a whole test suite with Guile's default test runner
2015-03-18 22:17 ` Taylan Ulrich Bayırlı/Kammer
@ 2015-03-18 22:34 ` Luis Felipe López Acevedo
2015-03-20 8:12 ` Ludovic Courtès
1 sibling, 0 replies; 6+ messages in thread
From: Luis Felipe López Acevedo @ 2015-03-18 22:34 UTC (permalink / raw)
To: taylanbayirli; +Cc: guile-user
On 2015-03-18 17:17, taylanbayirli@gmail.com wrote:
> Luis Felipe López Acevedo <felipe.lopez@openmailbox.org> 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.
>
Yeah, loading the module is what I currently use to run the tests in one
file, but that won't be convenient when I add more modules and tests. I
thought that maybe there was something like Python's test discovery,
where you run `$ python -m unittest` and it will find all the tests
instead of loading files individually by hand.
Maybe I'll try using a main procedure as you suggest.
> 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
Thanks, Taylan :)
--
Luis Felipe López Acevedo
http://sirgazil.bitbucket.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do I run a whole test suite with Guile's default test runner
2015-03-18 22:17 ` Taylan Ulrich Bayırlı/Kammer
2015-03-18 22:34 ` Luis Felipe López Acevedo
@ 2015-03-20 8:12 ` Ludovic Courtès
2015-03-20 8:38 ` Taylan Ulrich Bayırlı/Kammer
1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2015-03-20 8:12 UTC (permalink / raw)
To: guile-user
taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:
> 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/
Guile 2.0.12 onward will also ship SRFI-64.
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do I run a whole test suite with Guile's default test runner
2015-03-20 8:12 ` Ludovic Courtès
@ 2015-03-20 8:38 ` Taylan Ulrich Bayırlı/Kammer
2015-03-20 14:43 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Taylan Ulrich Bayırlı/Kammer @ 2015-03-20 8:38 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guile-user
ludo@gnu.org (Ludovic Courtès) writes:
> taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:
>
>> 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/
>
> Guile 2.0.12 onward will also ship SRFI-64.
2.0.11 already has the reference implementation (improved for Guile by
Mark) wrapped into a Guile module, which I was contrasting mine to.
Taylan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do I run a whole test suite with Guile's default test runner
2015-03-20 8:38 ` Taylan Ulrich Bayırlı/Kammer
@ 2015-03-20 14:43 ` Ludovic Courtès
0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2015-03-20 14:43 UTC (permalink / raw)
To: Taylan Ulrich "Bayırlı/Kammer"; +Cc: guile-user
taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> taylanbayirli@gmail.com (Taylan Ulrich "Bayırlı/Kammer") skribis:
>>
>>> 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/
>>
>> Guile 2.0.12 onward will also ship SRFI-64.
>
> 2.0.11 already has the reference implementation (improved for Guile by
> Mark) wrapped into a Guile module,
Oh sorry for the confusion, I thought 2.0.11 didn’t have it.
> which I was contrasting mine to.
OK, understood.
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-20 14:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-18 20:57 How do I run a whole test suite with Guile's default test runner Luis Felipe López Acevedo
2015-03-18 22:17 ` Taylan Ulrich Bayırlı/Kammer
2015-03-18 22:34 ` Luis Felipe López Acevedo
2015-03-20 8:12 ` Ludovic Courtès
2015-03-20 8:38 ` Taylan Ulrich Bayırlı/Kammer
2015-03-20 14:43 ` Ludovic Courtès
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 read-only IMAP folder(s) and NNTP newsgroup(s).