Re: Cabal's detailed test interface

2012-04-22 Thread Duncan Coutts
On 7 September 2011 20:14, Thomas Tuegel ttue...@gmail.com wrote: Greetings once again! I have attached an updated patch with the requested changes to the test interface. (I apologize for the delay; it was caused by the unfortunate conspiracy of moving, not having internet access, and

Re: Cabal's detailed test interface

2011-09-08 Thread Duncan Coutts
On Tue, 2011-09-06 at 11:16 +0200, José Pedro Magalhães wrote: Hi Duncan, Is there a planned date for a release which will have the detailed test interface? My hope is that it'll be ready in time to be included in a release of Cabal to go along with GHC 7.4 towards the end of the year. If

Re: Cabal's detailed test interface

2011-09-08 Thread José Pedro Magalhães
Hi, 2011/9/9 Duncan Coutts duncan.cou...@googlemail.com On Tue, 2011-09-06 at 11:16 +0200, José Pedro Magalhães wrote: Hi Duncan, Is there a planned date for a release which will have the detailed test interface? My hope is that it'll be ready in time to be included in a release of

Re: Cabal's detailed test interface

2011-09-06 Thread José Pedro Magalhães
Hi Duncan, Is there a planned date for a release which will have the detailed test interface? Thanks, Pedro 2011/9/5 Duncan Coutts duncan.cou...@googlemail.com On Wed, 2011-08-31 at 09:30 +0200, José Pedro Magalhães wrote: Hi all, I tried to use the detailed-1.0 test interface,

Re: Cabal's detailed test interface

2011-09-05 Thread Duncan Coutts
On Wed, 2011-08-31 at 09:30 +0200, José Pedro Magalhães wrote: Hi all, I tried to use the detailed-1.0 test interface, according to the instructions on http://www.haskell.org/cabal/users-guide/#test-suites. Ah, a rare case of premature documentation. That is, documentation for a feature that

Re: Cabal's detailed test interface

2011-08-31 Thread José Pedro Magalhães
Hi all, I tried to use the detailed-1.0 test interface, according to the instructions on http://www.haskell.org/cabal/users-guide/#test-suites. What I got: bash-3.2$ cabal --version cabal-install version 0.10.2 using version 1.10.2.0 of the Cabal library bash-3.2$ cabal configure cabal:

Re: Cabal's detailed test interface

2011-08-18 Thread Duncan Coutts
On Tue, 2011-08-16 at 14:23 -0500, Thomas Tuegel wrote: Johan and I are talking about renaming the Tests type to just Test to be more consistent about pluralization. So, also incorporating the changes I think you are suggesting to the Group type, it would look like: data Test = Test

Re: Cabal's detailed test interface

2011-08-16 Thread Thomas Tuegel
On Mon, Aug 8, 2011 at 5:52 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: On Thu, 2011-07-28 at 21:25 -0500, Thomas Tuegel wrote: I can see the utility of this. It would be simple enough to have Group take an (IO [Tests]) instead of just [Tests]. Note that that's not quite the same

Re: Cabal's detailed test interface

2011-08-08 Thread Duncan Coutts
On Thu, 2011-07-28 at 21:25 -0500, Thomas Tuegel wrote: On Wed, Jul 27, 2011 at 7:32 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: Speaking of IO, do we ever need to deal with test suites that need imperative setup and teardown for sets of tests? Individual tests can do setup and

Re: Cabal's detailed test interface

2011-08-02 Thread Johan Tibell
On Fri, Jul 29, 2011 at 4:40 AM, Thomas Tuegel ttue...@gmail.com wrote: On Wed, Jul 27, 2011 at 5:06 AM, Johan Tibell johan.tib...@gmail.com wrote: * Having the top-level 'tests' binding be IO Tests, instead of IO [Tests], is a bit inconvenient. It forces the users to always use at least one

Re: Cabal's detailed test interface

2011-07-28 Thread Thomas Tuegel
On Wed, Jul 27, 2011 at 7:32 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: Q: what should 'concurrently' mean for a test group that contains other test groups? Suppose a test group asks for serial execution, does that mean it's ok to run tests in a sub-group in parallel with each

Re: Cabal's detailed test interface

2011-07-28 Thread Thomas Tuegel
On Wed, Jul 27, 2011 at 5:06 AM, Johan Tibell johan.tib...@gmail.com wrote: A few notes: * Calling the data type that contains the Test, Group, and ExtraOptions constructor Tests feels a bit weird, as you often end up having to give a list of these e.g. to the Group constructor. You end up

Re: Cabal's detailed test interface

2011-07-27 Thread Johan Tibell
Curious about how a user of this API would look like I converted the parts of the test-framework API I use (for QC2 tests) to use the Cabal API. -- Converting a QC2 property to a Cabal test type. type TestName = String testProperty :: Testable a = TestName - a - Tests

Re: Cabal's detailed test interface

2011-07-27 Thread Duncan Coutts
On Tue, 2011-07-26 at 19:38 -0500, Thomas Tuegel wrote: Greetings interested Cabal users and developers! I am pleased to present another revision of Cabal's detailed test interface for your scrutiny. First of all, thanks for going over this again. I think we're getting closer. Probably

Cabal's detailed test interface

2011-07-26 Thread Thomas Tuegel
Greetings interested Cabal users and developers! I am pleased to present another revision of Cabal's detailed test interface for your scrutiny. I have attached a patch for the Cabal repository to this message so you can try the new interface and test runner for yourselves, but the interface from