On Thu, Mar 10, 2011 at 10:06 AM, Bas van Dijk <[email protected]> wrote:
> On 10 March 2011 08:12, Hauschild, Klaus (EXT)
> <[email protected]> wrote:
>> Hi Haskellers,
>>
>> I read about the cabal features for running test code from Setup.hs with
>> "defaultMainWithHooks". I'm looking for more generic code that allows me to
>> place any haskell in a subdirectory "test" or so and "cabal test" will run
>> this test without any modification of my Setup.hs.
>>
>> Is there a possibility?
>
> There is. The just released Cabal- 1.10.1.0 and cabal-install-0.10.2
> have support for test-suites.
>
> The documentation is not online yet so here's an example from my
> threads package:

You can find the docs here:

http://www.haskell.org/cabal/release/cabal-1.10.1.0/doc/users-guide/#test-suites

These are not yet the default docs (i.e. the docs linked from the
Cabal home page) but will likely be soon.

Johan

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to