[Haskell-cafe] Running tests in Cabal

Magnus Therning magnus at therning.org
Mon Jul 19 02:28:33 EDT 2010

On 19/07/10 07:14, Johan Tibell wrote:
> On Sun, Jul 18, 2010 at 9:23 PM, Magnus Therning <magnus at therning.org>wrote:
>> In my Cabal file I have defined a flag that controls whether tests are
>> built or not.  Now I'd like to hook it up a bit more so that './Setup.hs
>> test' actually runs the tests.
>> I haven't found a way to access that configuration flag in my hook
>> though.  Is it not available in some way?
>> Currently I'm settling for calling 'withExeLBI' and triggering the
>> running based on the exe name.  That feels somewhat circuitous though.
>> Is there some better approach?
>  Thomas Tuegel is working on test support for Cabal as part of this year's
>  Google Summer of Code. By the end of the summer, writing and running tests
>  using Cabal will be much simpler.

Ah, good to know.  Then I'll leave things as they are for now and wait until
his work makes it into the official release.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100719/07ee84db/signature.bin

More information about the Haskell-Cafe mailing list