diff options
author | Clint Adams <clint@softwarefreedom.org> | 2015-04-24 12:53:02 -0400 |
---|---|---|
committer | Clint Adams <clint@softwarefreedom.org> | 2015-04-24 12:53:02 -0400 |
commit | 62597317839c7945bfbc4b7a00f55d2db6459ab6 (patch) | |
tree | 6ad8c079d5eea66b05326d435e30cc2b1de43266 /tests/main.hs |
Diffstat (limited to 'tests/main.hs')
-rw-r--r-- | tests/main.hs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/main.hs b/tests/main.hs new file mode 100644 index 0000000..d475fe8 --- /dev/null +++ b/tests/main.hs @@ -0,0 +1,22 @@ +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE NoMonomorphismRestriction #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} + +module Main where + +import Import +import Settings +import Yesod.Logger (defaultDevelopmentLogger) +import Yesod.Default.Config +import Yesod.Test +import Application (makeFoundation) + +import HomeTest + +main :: IO a +main = do + conf <- loadConfig $ (configSettings Testing) { csParseExtra = parseExtra } + logger <- defaultDevelopmentLogger + foundation <- makeFoundation conf logger + app <- toWaiAppPlain foundation + runTests app (connPool foundation) homeSpecs |