testloop-0.1.1.0: Quick feedback loop for test suites

Portabilityunix
Maintainerromanandreg@gmail.com
Safe HaskellNone

System.TestLoop

Contents

Description

 

Synopsis

Main function

setupTestLoop :: IO ()Source

Parses your project's cabal file to find possible test-suites you may have on your project, then it will start a tracking process that listens to changes on files specified on the hs-source-dirs parameter of your testsuite, once a file is changed this process will run the testsuite automatically.

Use this function as the main of you testloop executable. e.g

On Cabal File

 test-suite lib-tests
   type: exitcode-stdio-1.0
   main-is: TestSuite.hs
   hs-source-dirs:
     src, test
   build-depends:
     -- test dependencies

 executable testloop
   main-is: TestLoop.hs
   hs-source-dirs:
     src, test
   build-depends:
     -- Your lib/app and test dependencies ... + testloop
     testloop

On test/TestLoop.hs

 module Main where

 import System.TestLoop

 main :: IO ()
 main = setupTestLoop