Any remaining test patches?

Duncan Coutts duncan.coutts at
Sat Jun 18 20:12:03 CEST 2011

On Mon, 2011-05-23 at 15:14 +0100, Ian Lynagh wrote:

> > If we'd like to add some flexibility we could allow tests to carry
> > arbitrary tags:
> > 
> > class TestInstance a where
> >     tags :: a -> [String]
> Just because GHC's testsuite distinguishes between ways and tests, I'm
> not sure if Cabal's testsuite framework needs to do so. Ways could just
> be encoded into the hierarchy, e.g. GHC's testsuite could include the
> tests
>     typechecker.T5636.ghci
>     typechecker.T5636.opt
> rather than the test
>     typechecker.T5636
> with 3 tagged variants.
> Perhaps having tags /as well/ would make sense, so
>     typechecker.T5636.ghci
> would be tagged ["typechecker", "ghci"] and it would then be possible to
> run 'all tests tagged "ghci"' or 'all tests tagged "typechecker"'.

Right, I was thinking of the latter, that each way is a separate test
but that they're tagged so you know they're related in some way.


More information about the cabal-devel mailing list