Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9

2009-06-11 Thread minh thu
Hi,

Have a look at http://projects.haskell.org/testrunner/using-testrunner.html,
specifically the last paragraph.

Also, http://batterseapower.github.com/test-framework/ says results
are reported in deterministic order...

Cheers,
Thu

2009/6/11 Rodney Price rodpr...@raytheon.com:
 When I run Example.lhs for test-framework I get

 [0]
 [1]

 in the test results, just as you show on your web page.  If I run
 Example.lhs under ghci rather than compiled, I find the [0] [1] mingled
 with the test results in random ways.  This leads me to believe that
 whatever is printing out [0] [1] is running is a separate thread.

 Does this [0] [1] have any meaning?  If not, how do I get rid of it?

 Thanks,
 -Rod



 On Mon, 8 Jun 2009 19:07:52 +0100
 Max Bolingbroke batterseapo...@hotmail.com wrote:

 2009/6/8 Reinier Lamers tux_roc...@reinier.de:
  I checked out testpack and that did not meet my requirements. I
  don't know if I considered test-framework. If I did, it may be that
  I was turned off by the fact that the 'home page' link on cabal
  just goes to a web presentation of the source tree on github.

 Reinier,

 You are quite right that this is a weakness. I've been meaning to put
 a site together for a while, and your comment gave me the impetus to
 do it:

 http://batterseapower.github.com/test-framework/

 That's much friendlier!

 All the best,
 Max
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

 The following line is added for your protection and will be used for
 analysis if this message is reported as spam:

 (Raytheon Analysis: IP=128.36.229.215;
 e-from=haskell-cafe-boun...@haskell.org;
 from=batterseapo...@hotmail.com; date=Jun 8, 2009 6:08:07 PM;
 subject=[Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9)

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9

2009-06-11 Thread Max Bolingbroke
Hi Rodney,

The [0], [1] is a demonstration of failing arguments to QuickCheck.

Now, generally test-framework is very careful to avoid printing from
anything other than the main thread. That being said there is a known
problem with the QuickCheck-2 provider that will cause it to print the
failing arguments from the background thread. This is due to a
technical limitation with the library (it insists on writing to
stdout, so this is the best I could do without copying most of the
code).

QuickCheck-1 /shouldn't/ (to the best of my knowledge) have this
problem, though. Is that what you were using? If so I'll investigate
further.

Cheers,
Max

2009/6/10 Rodney Price rodpr...@raytheon.com:
 When I run Example.lhs for test-framework I get

 [0]
 [1]

 in the test results, just as you show on your web page.  If I run
 Example.lhs under ghci rather than compiled, I find the [0] [1] mingled
 with the test results in random ways.  This leads me to believe that
 whatever is printing out [0] [1] is running is a separate thread.

 Does this [0] [1] have any meaning?  If not, how do I get rid of it?

 Thanks,
 -Rod



 On Mon, 8 Jun 2009 19:07:52 +0100
 Max Bolingbroke batterseapo...@hotmail.com wrote:

 2009/6/8 Reinier Lamers tux_roc...@reinier.de:
  I checked out testpack and that did not meet my requirements. I
  don't know if I considered test-framework. If I did, it may be that
  I was turned off by the fact that the 'home page' link on cabal
  just goes to a web presentation of the source tree on github.

 Reinier,

 You are quite right that this is a weakness. I've been meaning to put
 a site together for a while, and your comment gave me the impetus to
 do it:

 http://batterseapower.github.com/test-framework/

 That's much friendlier!

 All the best,
 Max
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

 The following line is added for your protection and will be used for
 analysis if this message is reported as spam:

 (Raytheon Analysis: IP=128.36.229.215;
 e-from=haskell-cafe-boun...@haskell.org;
 from=batterseapo...@hotmail.com; date=Jun 8, 2009 6:08:07 PM;
 subject=[Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9)

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9

2009-06-10 Thread Rodney Price
When I run Example.lhs for test-framework I get 

[0]
[1]

in the test results, just as you show on your web page.  If I run
Example.lhs under ghci rather than compiled, I find the [0] [1] mingled
with the test results in random ways.  This leads me to believe that
whatever is printing out [0] [1] is running is a separate thread.

Does this [0] [1] have any meaning?  If not, how do I get rid of it?

Thanks,
-Rod



On Mon, 8 Jun 2009 19:07:52 +0100
Max Bolingbroke batterseapo...@hotmail.com wrote:

 2009/6/8 Reinier Lamers tux_roc...@reinier.de:
  I checked out testpack and that did not meet my requirements. I
  don't know if I considered test-framework. If I did, it may be that
  I was turned off by the fact that the 'home page' link on cabal
  just goes to a web presentation of the source tree on github.
 
 Reinier,
 
 You are quite right that this is a weakness. I've been meaning to put
 a site together for a while, and your comment gave me the impetus to
 do it:
 
 http://batterseapower.github.com/test-framework/
 
 That's much friendlier!
 
 All the best,
 Max
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe
 
 The following line is added for your protection and will be used for
 analysis if this message is reported as spam:
 
 (Raytheon Analysis: IP=128.36.229.215;
 e-from=haskell-cafe-boun...@haskell.org;
 from=batterseapo...@hotmail.com; date=Jun 8, 2009 6:08:07 PM;
 subject=[Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9)

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9

2009-06-08 Thread Max Bolingbroke
Your feature list sounds like an almost exact duplicate of that for my
test-framework package, which has been available on Hackage for months
(although it's almost totally unadvertised!):

https://github.com/batterseapower/test-framework/tree
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/test-framework

There is also John's testpack:
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack

Seems like we need to advertise these better :-)

Cheers,
Max

2009/6/8 Reinier Lamers tux_roc...@reinier.de:
 Dear all,

 testrunner is a new framework to run unit tests. It has the following
 distinguishing features:

 * It can run unit tests in parallel.
 * It can run QuickCheck and HUnit tests as well as simple boolean expressions.
 * It comes with a ready-made main function for your unit test executable.
 * This main function recognizes command-line arguments to select tests by name
  and replay QuickCheck tests.

 testrunner was conceived as a part of the darcs project.

 The home page is http://projects.haskell.org/testrunner/.

 testrunner can be downloaded from
 http://projects.haskell.org/testrunner/releases/testrunner-0.9.tar.gz, or with
 darcs with a darcs get http://code.haskell.org/testrunner/;.

 Regards,
 Reinier Lamers (tux_rocker)


 ___
 Haskell mailing list
 hask...@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: [Haskell] ANNOUNCE: testrunner-0.9

2009-06-08 Thread Max Bolingbroke
2009/6/8 Reinier Lamers tux_roc...@reinier.de:
 I checked out testpack and that did not meet my requirements. I don't know if
 I considered test-framework. If I did, it may be that I was turned off by the
 fact that the 'home page' link on cabal just goes to a web presentation of the
 source tree on github.

Reinier,

You are quite right that this is a weakness. I've been meaning to put
a site together for a while, and your comment gave me the impetus to
do it:

http://batterseapower.github.com/test-framework/

That's much friendlier!

All the best,
Max
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe