[plt-scheme] Testing whole module

From: Jos Koot (jos.koot at telefonica.net)
Date: Mon Aug 6 14:43:27 EDT 2007

Another nasty method is
(parameterize ((current-namespace (module->namespace module-spec))) test ...),
but you can't do this within a module. It requires top level (argh)
A neater method is to include the checks in the module itself with an expansion 
time switch that turns checking on/off in the expansion phase.
Jos Koot

----- Original Message ----- 
From: "Paulo J. Matos" <pocm at soton.ac.uk>
To: "PLT-Scheme Mailing List" <plt-scheme at list.cs.brown.edu>
Sent: Monday, August 06, 2007 6:56 PM
Subject: [plt-scheme] Testing whole module


> Hi all,
>
> I'm using SchemeUnit for unit testing and I just created a test module
> foo-test.scm for foo.scm but I just realized I'll only be able to
> access/test functions provided by foo.scm. I would like to test also
> functions _not_ provided by foo but which should be tested. What's the
> best approach for this?
>
> Cheers,
> -- 
> Paulo Jorge Matos - pocm at soton.ac.uk
> http://www.personal.soton.ac.uk/pocm
> PhD Student @ ECS
> University of Southampton, UK
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 



Posted on the users mailing list.