[Haskell-cafe] Automated tests with cabal
johan.tibell at gmail.com
Thu Mar 10 10:19:21 CET 2011
On Thu, Mar 10, 2011 at 10:06 AM, Bas van Dijk <v.dijk.bas at gmail.com> wrote:
> On 10 March 2011 08:12, Hauschild, Klaus (EXT)
> <klaus.hauschild.ext at siemens.com> 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- 188.8.131.52 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:
These are not yet the default docs (i.e. the docs linked from the
Cabal home page) but will likely be soon.
More information about the Haskell-Cafe