[darcs-users] darcs patch: Add Test.Runner module to run the unit t... (and 5 more)

Reinier Lamers tux_rocker at reinier.de
Tue May 12 15:59:07 UTC 2009


Hi all,

Here's a bundle of unit test stuff I've done since the sprint. It's about
creating a unified API for running darcs' tests. It is my intention to spin
off this test running API to hackage. Therefore, I've used the Test top
level module instead of Darcs.

What it does now:
  * Run tests in parallel. For running with $i threads, use the command
    "dist/build/unit/unit -j $i +RTS -N$i"

Todos:
  * Move logic in the main function to Test.Runner
  * Add possibility to select tests to run with command line flags (I'm
    thinking of using regexps matchin test names)
  * Add possibility to replay quickcheck test using the seed and size
    reported upon failure.

I can't use my right arm now because I broke my collar bone :-(. Thus
progress is slow and I'm sending what I have. I can attack the code full
force again in a few weeks, if all goes well.

Regards,
Reinier


Tue Apr 28 22:04:50 CEST 2009  Reinier Lamers <tux_rocker at reinier.de>
  * Add Test.Runner module to run the unit tests
  
  This module will provide things like running the unit tests in parallel and
  producing a report of the entire test run. I hope it can be split off into a
  separate package in the not-too-distant future.
  

Tue Apr 28 22:09:43 CEST 2009  Reinier Lamers <tux_rocker at reinier.de>
  * Refactor unit.lhs to use Test.Runner

Thu Apr 30 00:44:25 CEST 2009  Reinier Lamers <tux_rocker at reinier.de>
  * Make Test.Runner capable of tracking failure reasons

Thu Apr 30 20:57:29 CEST 2009  Reinier Lamers <tux_rocker at reinier.de>
  * Make Darcs.Patch.Unit use Test.Runner
  
  This includes a semantic change: unit testing no longer stops after the patch
  unit tests if one of those fails. I can't see a reason why that would be very
  bad.

Fri May  8 23:45:44 CEST 2009  Reinier Lamers <tux_rocker at reinier.de>
  * Add command line options for unit to set no. of threads

Tue May 12 17:47:53 CEST 2009  Reinier Lamers <tux_rocker at reinier.de>
  * Give enough information to reproduce failing Quickcheck tests

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 125043 bytes
Desc: A darcs patch for your repository!
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090512/9c069854/attachment-0001.bin>


More information about the darcs-users mailing list