
23 May
2011
23 May
'11
3:04 p.m.
On Mon, May 23, 2011 at 8:48 AM, Johan Tibell
I'm worried about generalizing from a single instance (i.e. GHC).
If we'd like to add some flexibility we could allow tests to carry arbitrary tags:
class TestInstance a where tags :: a -> [String]
Test agents could use tags to group tests in different ways. We could add support for tags in Cabal's test runner so that they can be used to select which tests to run. For example,
cabal test --test-tags="smoke -flaky"
could run all non-flaky smoke tests.
I think this is a great, inexpensive way to add a lot of flexibility to the test system. Anyway, it seems tags are all the rage these days! (Could this be a marketing point? "Cabal Test: Now with Tags!") -- Thomas Tuegel