diff options
author | Clint Adams <clint@softwarefreedom.org> | 2012-10-22 15:19:04 -0400 |
---|---|---|
committer | Clint Adams <clint@softwarefreedom.org> | 2012-10-22 15:19:04 -0400 |
commit | 025eb70c992914fbdf018c189d358ae250d2eeb1 (patch) | |
tree | 7367d3726594183bbb908d1a797cacd410c301cc /tests/main.hs |
This needs to be cleaned and sanitized before publication.
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 |