summaryrefslogtreecommitdiff
path: root/tests/main.hs
blob: d475fe8c446e937b15eef717df5f133410695a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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