Run tests as doctests

This commit is contained in:
Oleg Grenrus 2018-09-10 14:36:49 +03:00
commit 259b1a5dc6
12 changed files with 1691 additions and 1531 deletions

12
test/doctests.hs Normal file
View file

@ -0,0 +1,12 @@
module Main where
import Build_doctests (flags, pkgs, module_sources)
import Data.Foldable (traverse_)
import Test.DocTest (doctest)
main :: IO ()
main = do
traverse_ putStrLn args
doctest args
where
args = flags ++ pkgs ++ module_sources