File: Main.hs

package info (click to toggle)
haskell-aeson-jsonpath 0.3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 404 kB
  • sloc: haskell: 1,800; makefile: 3
file content (29 lines) | stat: -rw-r--r-- 558 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module Main
  ( main )
  where

import qualified Test.Hspec as HS

import qualified ParserSpec
import qualified QuerySpec
import qualified LocatedSpec

import Test.Hspec.Runner
import Prelude

specs :: Spec
specs = do
  HS.describe "Run all tests" $ do
    ParserSpec.spec
    QuerySpec.spec
    LocatedSpec.spec


main :: IO ()
main = do
  summary <- hspecWithResult defaultConfig 
    { configColorMode = ColorAuto
    } specs
  
  putStrLn $ "Total tests: " ++ show (summaryExamples summary)
  putStrLn $ "Failures: "    ++ show (summaryFailures summary)