Skip to content
  • Iustin Pop's avatar
    Switch Haskell test harness to test-framework · 95f6c931
    Iustin Pop authored
    This patch replaces our home-grown, and quite limited, test runner
    infrastructure with test-framework
    (http://batterseapower.github.com/test-framework/
    
    ). The rationale for
    doing so is as follows:
    
    - we will need to add support for HUnit tests, so either we add more
      custom code or we switch to an existing library
    - test-framework is mature and already packaged, at least in
      Debian/Ubuntu
    - it supports more features: parallel test running, better test
      selection, etc.
    
    As you can see, the changes are trivial, and don't touch the tests at
    all; if/when we split the QC.hs file into per-module files, then we
    could drop QCHelper too, and replace it with test-framework-th, which
    does the same, but even more automated (auto-discovery, without having
    to list the tests at all).
    
    Dependencies are updated in devnotes.rst; note that I've already added
    the hunit dependencies since we're going to use that soon.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
    95f6c931