[Haskell-cafe] Re: GSoC: Improving Cabal's Test Support
Richard G.
richardg at richardg.name
Wed Apr 28 04:30:09 EDT 2010
I think that, rather than having Cabal try to combine the results of
different frameworks, Cabal should specify interfaces that frameworks
need to conform to.
E.g., rather than integrating test-framework into Cabal so that HUnit
works with it, modify HUnit so it emits the format that Cabal wants.
And modify test-framework to emit the format that Cabal wants so, if
someone can't convert their test suite to the CabalTest format,
test-framework can act as an intermediary and handle the conversion of
output.
Richard G.
On 10-04-06 5:03 PM, Gregory Crosswhite wrote:
> Rather that starting from scratch, you should strongly consider adapting something like test-framework to this task, as it already has done the heavy work of creating a way to combine tests from different frameworks into a single suite and includes such features as displaying a progress bar during the QuickCheck tests. Furthermore, it is easily extendable to support new kinds of tests; for example, I found that it was relatively straightforward to add a new kind of "statistical" test to make sure that the average value of a function where where it should be.
>
> Cheers,
> Greg
More information about the Haskell-Cafe
mailing list